<!DOCTYPE html>
<!-- saved from url=(0108)https://flourish-user-preview.com/14560997/aoPT6M0-14DvqPZ2zm3ag2Yk6HYOLlhpUxNghjl-nN5UALajD2BWWINCE3x2V-Lh/ -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<meta name="viewport" content="width=device-width, initial-scale=1">

		<link rel="stylesheet" type="text/css" href="./Flourish template_ Bar chart race_files/style.css">
	<title>Flourish template: Bar chart race</title><style id="flourish-page-styles" type="text/css">html { 
 font-size:62.5%; 
 -webkit-font-smoothing: antialiased; 
 -moz-osx-font-smoothing: auto; } 


@media(min-width: 380px) {
html { font-size:75%; }
}

@media(min-width: 580px) {
html { font-size:87.5%; }
}

@media(min-width: 1080px) {
html { font-size:100%; }
}

@media(min-width: 1280px) {
html { font-size:120%; }
}

</style><style type="text/css">.flourish-footer { margin: 0; } .flourish-footer p { margin: 0; display: inline; } .flourish-footer p:empty { height: 0; } .flourish-footer a { color: inherit; }</style><style class="fl-ui-styles-controls">.fl-control.hidden {
	display: none;
}

.fl-control {
	vertical-align: middle;
	position: relative;
	font-size: 1rem;
	font-weight: bold;
}

.fl-controls-title {
	font-size: 1rem;
	font-weight: bold;
	vertical-align: middle;
}

.fl-control.fl-control .button {
	height: 2rem;
	padding: 0 0.5em;
}

.fl-control-dropdown select {
	height: 2rem;
	font-size: 1rem;
	font-weight: bold;
	padding: 0 0.2rem;
}

.fl-control-slider .slider-end-labels {
	font-size: 1rem;
	font-weight: bold;
}

.fl-control-slider {
	height: 2rem;
}

</style><style class="fl-ui-styles-button">.fl-control-buttons.fl-control.hidden {
	display: none;
}

.fl-control-buttons.fl-control .button {
	overflow: hidden;
	white-space: nowrap;
	margin: 0 2px 0 0 !important;
	background-color: #ffffff;
	color: #333333;
	border: 1px solid rgba(51, 51, 51, 0.25);
	border-radius: 3px;
}

.fl-control-buttons.fl-control .button:hover {
	background-color: #ffffff;
	color: #333333;
}

.fl-control-buttons.fl-control .button.selected {
	background-color: #2886b2;
	color: #ffffff;
}

.fl-control-buttons.grouped.fl-control .button {
	border-right: none;
	border-radius: 0;
	margin: 0;
}

.fl-control-buttons.grouped.fl-control .button:first-child {
	border-radius: 3px 0 0 3px;
}

.fl-control-buttons.grouped.fl-control .button:last-child {
	border-radius: 0 3px 3px 0;
	border-right: 1px solid rgba(51, 51, 51, 0.25);
}

.fl-control-buttons.grouped.fl-control.fixed-width:not(.hidden) {
	width: undefined%;
}

</style><style id="legend-styles" type="text/css">.fl-legend-container.interactive .fl-legend-item:hover {
	opacity: 0.75;
	cursor: pointer;
}

</style><link rel="stylesheet" href="./Flourish template_ Bar chart race_files/css" class="layout-font"></head>
	<body style="font-family: &quot;Source Sans Pro&quot;; background-color: rgb(255, 255, 255); background-size: cover; background-repeat: no-repeat; background-position: center center;" class="fl-fonts-loaded" dir="ltr">
	

<remove-web-limits-iqxin id="rwl-iqxin" class="rwl-exempt" style="position: fixed; top: 0px; left: 0px;"><qxinbutton type="qxinbutton" id="rwl-setbtn"> set </qxinbutton> <lalala style="cursor:move; font-size:12px;">限制解除</lalala> <input type="checkbox" name="" id="black_node"><style type="text/css">#rwl-iqxin{position:fixed;transform:translate(-95%,0);width:85px;height:25px;font-size:12px;font-weight: 500;font-family:Verdana, Arial, '宋体';color:#fff;background:#333;z-index:2147483647;margin: 0;opacity:0.05;transition:0.3s;overflow:hidden;user-select:none;text-align:center;white-space:nowrap;line-height:25px;padding:0 16px;border:1px solid #ccc;border-width:1px 1px 1px 0;border-bottom-right-radius:5px;box-sizing: content-box;}#rwl-iqxin input{margin: 0;padding: 0;vertical-align:middle;-webkit-appearance:checkbox !important;-moz-appearance:checkbox;position: static;clip: auto;opacity: 1;cursor: pointer;}#rwl-iqxin.rwl-active-iqxin{left: 0px;transform:translate(0,0);opacity: 0.9;height: 32px;line-height: 32px}#rwl-iqxin label{margin:0;padding:0;font-weight:500;}#rwl-iqxin #rwl-setbtn{margin: 0 4px 0 0;padding: 0 0 0 4px;border: none;border-radius: 2px;cursor: pointer;background: #fff;color: #000;} </style></remove-web-limits-iqxin><script>window.Flourish = {"static_prefix":"static","environment":"preview","is_read_only":true};</script><script>var template=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r,i,a=function(t){return t&&t.Math==Math&&t},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof e&&e)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},c=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!s((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),u=Function.prototype.call,f=l?u.bind(u):function(){return u.apply(u,arguments)},d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,p={f:h&&!d.call({1:2},1)?function(t){var e=h(this,t);return!!e&&e.enumerable}:d},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,b=g.call,m=l&&g.bind.bind(b,b),y=l?m:function(t){return function(){return b.apply(t,arguments)}},v=y({}.toString),w=y("".slice),x=function(t){return w(v(t),8,-1)},k=Object,M=y("".split),S=s((function(){return!k("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?M(t,""):k(t)}:k,A=function(t){return null==t},T=TypeError,C=function(t){if(A(t))throw T("Can't call method on "+t);return t},E=function(t){return S(C(t))},N="object"==typeof document&&document.all,O={all:N,IS_HTMLDDA:void 0===N&&void 0!==N},z=O.all,F=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===z}:function(t){return"function"==typeof t},D=O.all,j=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:F(t)||t===D}:function(t){return"object"==typeof t?null!==t:F(t)},L=function(t,e){return arguments.length<2?(n=o[t],F(n)?n:void 0):o[t]&&o[t][e];var n},P=y({}.isPrototypeOf),H="undefined"!=typeof navigator&&String(navigator.userAgent)||"",R=o.process,B=o.Deno,I=R&&R.versions||B&&B.version,Y=I&&I.v8;Y&&(i=(r=Y.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(i=+r[1]);var q=i,U=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&q&&q<41})),$=U&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,V=Object,G=$?function(t){return"symbol"==typeof t}:function(t){var e=L("Symbol");return F(e)&&P(e.prototype,V(t))},W=String,X=function(t){try{return W(t)}catch(t){return"Object"}},Z=TypeError,J=function(t){if(F(t))return t;throw Z(X(t)+" is not a function")},Q=function(t,e){var n=t[e];return A(n)?void 0:J(n)},K=TypeError,tt=Object.defineProperty,et=function(t,e){try{tt(o,t,{value:e,configurable:!0,writable:!0})}catch(n){o[t]=e}return e},nt="__core-js_shared__",rt=o[nt]||et(nt,{}),it=n((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),at=Object,ot=function(t){return at(C(t))},st=y({}.hasOwnProperty),ct=Object.hasOwn||function(t,e){return st(ot(t),e)},lt=0,ut=Math.random(),ft=y(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++lt+ut,36)},ht=o.Symbol,pt=it("wks"),_t=$?ht.for||ht:ht&&ht.withoutSetter||dt,gt=function(t){return ct(pt,t)||(pt[t]=U&&ct(ht,t)?ht[t]:_t("Symbol."+t)),pt[t]},bt=TypeError,mt=gt("toPrimitive"),yt=function(t,e){if(!j(t)||G(t))return t;var n,r=Q(t,mt);if(r){if(void 0===e&&(e="default"),n=f(r,t,e),!j(n)||G(n))return n;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&F(n=t.toString)&&!j(r=f(n,t)))return r;if(F(n=t.valueOf)&&!j(r=f(n,t)))return r;if("string"!==e&&F(n=t.toString)&&!j(r=f(n,t)))return r;throw K("Can't convert object to primitive value")}(t,e)},vt=function(t){var e=yt(t,"string");return G(e)?e:e+""},wt=o.document,xt=j(wt)&&j(wt.createElement),kt=function(t){return xt?wt.createElement(t):{}},Mt=!c&&!s((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),St=Object.getOwnPropertyDescriptor,At={f:c?St:function(t,e){if(t=E(t),e=vt(e),Mt)try{return St(t,e)}catch(t){}if(ct(t,e))return _(!f(p.f,t,e),t[e])}},Tt=c&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ct=String,Et=TypeError,Nt=function(t){if(j(t))return t;throw Et(Ct(t)+" is not an object")},Ot=TypeError,zt=Object.defineProperty,Ft=Object.getOwnPropertyDescriptor,Dt="enumerable",jt="configurable",Lt="writable",Pt={f:c?Tt?function(t,e,n){if(Nt(t),e=vt(e),Nt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Lt in n&&!n[Lt]){var r=Ft(t,e);r&&r[Lt]&&(t[e]=n.value,n={configurable:jt in n?n[jt]:r[jt],enumerable:Dt in n?n[Dt]:r[Dt],writable:!1})}return zt(t,e,n)}:zt:function(t,e,n){if(Nt(t),e=vt(e),Nt(n),Mt)try{return zt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ot("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ht=c?function(t,e,n){return Pt.f(t,e,_(1,n))}:function(t,e,n){return t[e]=n,t},Rt=Function.prototype,Bt=c&&Object.getOwnPropertyDescriptor,It=ct(Rt,"name"),Yt={EXISTS:It,PROPER:It&&"something"===function(){}.name,CONFIGURABLE:It&&(!c||c&&Bt(Rt,"name").configurable)},qt=y(Function.toString);F(rt.inspectSource)||(rt.inspectSource=function(t){return qt(t)});var Ut,$t,Vt,Gt=rt.inspectSource,Wt=o.WeakMap,Xt=F(Wt)&&/native code/.test(String(Wt)),Zt=it("keys"),Jt=function(t){return Zt[t]||(Zt[t]=dt(t))},Qt={},Kt="Object already initialized",te=o.TypeError,ee=o.WeakMap;if(Xt||rt.state){var ne=rt.state||(rt.state=new ee);ne.get=ne.get,ne.has=ne.has,ne.set=ne.set,Ut=function(t,e){if(ne.has(t))throw te(Kt);return e.facade=t,ne.set(t,e),e},$t=function(t){return ne.get(t)||{}},Vt=function(t){return ne.has(t)}}else{var re=Jt("state");Qt[re]=!0,Ut=function(t,e){if(ct(t,re))throw te(Kt);return e.facade=t,Ht(t,re,e),e},$t=function(t){return ct(t,re)?t[re]:{}},Vt=function(t){return ct(t,re)}}var ie={set:Ut,get:$t,has:Vt,enforce:function(t){return Vt(t)?$t(t):Ut(t,{})},getterFor:function(t){return function(e){var n;if(!j(e)||(n=$t(e)).type!==t)throw te("Incompatible receiver, "+t+" required");return n}}},ae=n((function(t){var e=Yt.CONFIGURABLE,n=ie.enforce,r=ie.get,i=String,a=Object.defineProperty,o=y("".slice),l=y("".replace),u=y([].join),f=c&&!s((function(){return 8!==a((function(){}),"length",{value:8}).length})),d=String(String).split("String"),h=t.exports=function(t,r,s){"Symbol("===o(i(r),0,7)&&(r="["+l(i(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!ct(t,"name")||e&&t.name!==r)&&(c?a(t,"name",{value:r,configurable:!0}):t.name=r),f&&s&&ct(s,"arity")&&t.length!==s.arity&&a(t,"length",{value:s.arity});try{s&&ct(s,"constructor")&&s.constructor?c&&a(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var h=n(t);return ct(h,"source")||(h.source=u(d,"string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return F(this)&&r(this).source||Gt(this)}),"toString")})),oe=function(t,e,n,r){r||(r={});var i=r.enumerable,a=void 0!==r.name?r.name:e;if(F(n)&&ae(n,a,r),r.global)i?t[e]=n:et(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Pt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},se=Math.ceil,ce=Math.floor,le=Math.trunc||function(t){var e=+t;return(e>0?ce:se)(e)},ue=function(t){var e=+t;return e!=e||0===e?0:le(e)},fe=Math.max,de=Math.min,he=function(t,e){var n=ue(t);return n<0?fe(n+e,0):de(n,e)},pe=Math.min,_e=function(t){return(e=t.length)>0?pe(ue(e),9007199254740991):0;var e},ge=function(t){return function(e,n,r){var i,a=E(e),o=_e(a),s=he(r,o);if(t&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}},be={includes:ge(!0),indexOf:ge(!1)}.indexOf,me=y([].push),ye=function(t,e){var n,r=E(t),i=0,a=[];for(n in r)!ct(Qt,n)&&ct(r,n)&&me(a,n);for(;e.length>i;)ct(r,n=e[i++])&&(~be(a,n)||me(a,n));return a},ve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],we=ve.concat("length","prototype"),xe={f:Object.getOwnPropertyNames||function(t){return ye(t,we)}},ke={f:Object.getOwnPropertySymbols},Me=y([].concat),Se=L("Reflect","ownKeys")||function(t){var e=xe.f(Nt(t)),n=ke.f;return n?Me(e,n(t)):e},Ae=function(t,e,n){for(var r=Se(e),i=Pt.f,a=At.f,o=0;o<r.length;o++){var s=r[o];ct(t,s)||n&&ct(n,s)||i(t,s,a(e,s))}},Te=/#|\.prototype\./,Ce=function(t,e){var n=Ne[Ee(t)];return n==ze||n!=Oe&&(F(e)?s(e):!!e)},Ee=Ce.normalize=function(t){return String(t).replace(Te,".").toLowerCase()},Ne=Ce.data={},Oe=Ce.NATIVE="N",ze=Ce.POLYFILL="P",Fe=Ce,De=At.f,je=function(t,e){var n,r,i,a,s,c=t.target,l=t.global,u=t.stat;if(n=l?o:u?o[c]||et(c,{}):(o[c]||{}).prototype)for(r in e){if(a=e[r],i=t.dontCallGetSet?(s=De(n,r))&&s.value:n[r],!Fe(l?r:c+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;Ae(a,i)}(t.sham||i&&i.sham)&&Ht(a,"sham",!0),oe(n,r,a,t)}},Le=Array.isArray||function(t){return"Array"==x(t)},Pe=TypeError,He=function(t){if(t>9007199254740991)throw Pe("Maximum allowed index exceeded");return t},Re=function(t,e,n){var r=vt(e);r in t?Pt.f(t,r,_(0,n)):t[r]=n},Be={};Be[gt("toStringTag")]="z";var Ie="[object z]"===String(Be),Ye=gt("toStringTag"),qe=Object,Ue="Arguments"==x(function(){return arguments}()),$e=Ie?x:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=qe(t),Ye))?n:Ue?x(e):"Object"==(r=x(e))&&F(e.callee)?"Arguments":r},Ve=function(){},Ge=[],We=L("Reflect","construct"),Xe=/^\s*(?:class|function)\b/,Ze=y(Xe.exec),Je=!Xe.exec(Ve),Qe=function(t){if(!F(t))return!1;try{return We(Ve,Ge,t),!0}catch(t){return!1}},Ke=function(t){if(!F(t))return!1;switch($e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Je||!!Ze(Xe,Gt(t))}catch(t){return!0}};Ke.sham=!0;var tn,en=!We||s((function(){var t;return Qe(Qe.call)||!Qe(Object)||!Qe((function(){t=!0}))||t}))?Ke:Qe,nn=gt("species"),rn=Array,an=function(t,e){return new(function(t){var e;return Le(t)&&(e=t.constructor,(en(e)&&(e===rn||Le(e.prototype))||j(e)&&null===(e=e[nn]))&&(e=void 0)),void 0===e?rn:e}(t))(0===e?0:e)},on=gt("species"),sn=gt("isConcatSpreadable"),cn=q>=51||!s((function(){var t=[];return t[sn]=!1,t.concat()[0]!==t})),ln=function(t){if(!j(t))return!1;var e=t[sn];return void 0!==e?!!e:Le(t)},un=!(cn&&(tn="concat",q>=51||!s((function(){var t=[];return(t.constructor={})[on]=function(){return{foo:1}},1!==t[tn](Boolean).foo}))));je({target:"Array",proto:!0,arity:1,forced:un},{concat:function(t){var e,n,r,i,a,o=arguments,s=ot(this),c=an(s,0),l=0;for(e=-1,r=arguments.length;e<r;e++)if(ln(a=-1===e?s:o[e]))for(i=_e(a),He(l+i),n=0;n<i;n++,l++)n in a&&Re(c,l,a[n]);else He(l+1),Re(c,l++,a);return c.length=l,c}});var fn=Ie?{}.toString:function(){return"[object "+$e(this)+"]"};Ie||oe(Object.prototype,"toString",fn,{unsafe:!0});var dn,hn=String,pn=function(t){if("Symbol"===$e(t))throw TypeError("Cannot convert a Symbol value to a string");return hn(t)},_n=Object.keys||function(t){return ye(t,ve)},gn=c&&!Tt?Object.defineProperties:function(t,e){Nt(t);for(var n,r=E(e),i=_n(e),a=i.length,o=0;a>o;)Pt.f(t,n=i[o++],r[n]);return t},bn={f:gn},mn=L("document","documentElement"),yn="prototype",vn="script",wn=Jt("IE_PROTO"),xn=function(){},kn=function(t){return"<"+vn+">"+t+"</"+vn+">"},Mn=function(t){t.write(kn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Sn=function(){try{dn=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Sn="undefined"!=typeof document?document.domain&&dn?Mn(dn):(e=kt("iframe"),n="java"+vn+":",e.style.display="none",mn.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(kn("document.F=Object")),t.close(),t.F):Mn(dn);for(var r=ve.length;r--;)delete Sn[yn][ve[r]];return Sn()};Qt[wn]=!0;var An=Object.create||function(t,e){var n;return null!==t?(xn[yn]=Nt(t),n=new xn,xn[yn]=null,n[wn]=t):n=Sn(),void 0===e?n:bn.f(n,e)},Tn=Array,Cn=Math.max,En=xe.f,Nn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],On=function(t){try{return En(t)}catch(t){return function(t,e,n){for(var r=_e(t),i=he(e,r),a=he(void 0===n?r:n,r),o=Tn(Cn(a-i,0)),s=0;i<a;i++,s++)Re(o,s,t[i]);return o.length=s,o}(Nn)}},zn={f:function(t){return Nn&&"Window"==x(t)?On(t):En(E(t))}},Fn=function(t,e,n){return n.get&&ae(n.get,e,{getter:!0}),n.set&&ae(n.set,e,{setter:!0}),Pt.f(t,e,n)},Dn={f:gt},jn=o,Ln=Pt.f,Pn=function(t){var e=jn.Symbol||(jn.Symbol={});ct(e,t)||Ln(e,t,{value:Dn.f(t)})},Hn=function(){var t=L("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=gt("toPrimitive");e&&!e[r]&&oe(e,r,(function(t){return f(n,this)}),{arity:1})},Rn=Pt.f,Bn=gt("toStringTag"),In=function(t,e,n){t&&!n&&(t=t.prototype),t&&!ct(t,Bn)&&Rn(t,Bn,{configurable:!0,value:e})},Yn=function(t){if("Function"===x(t))return y(t)},qn=Yn(Yn.bind),Un=function(t,e){return J(t),void 0===e?t:l?qn(t,e):function(){return t.apply(e,arguments)}},$n=y([].push),Vn=function(t){var e=1==t,n=2==t,r=3==t,i=4==t,a=6==t,o=7==t,s=5==t||a;return function(c,l,u,f){for(var d,h,p=ot(c),_=S(p),g=Un(l,u),b=_e(_),m=0,y=f||an,v=e?y(c,b):n||o?y(c,0):void 0;b>m;m++)if((s||m in _)&&(h=g(d=_[m],m,p),t))if(e)v[m]=h;else if(h)switch(t){case 3:return!0;case 5:return d;case 6:return m;case 2:$n(v,d)}else switch(t){case 4:return!1;case 7:$n(v,d)}return a?-1:r||i?i:v}},Gn={forEach:Vn(0),map:Vn(1),filter:Vn(2),some:Vn(3),every:Vn(4),find:Vn(5),findIndex:Vn(6),filterReject:Vn(7)}.forEach,Wn=Jt("hidden"),Xn="Symbol",Zn="prototype",Jn=ie.set,Qn=ie.getterFor(Xn),Kn=Object[Zn],tr=o.Symbol,er=tr&&tr[Zn],nr=o.TypeError,rr=o.QObject,ir=At.f,ar=Pt.f,or=zn.f,sr=p.f,cr=y([].push),lr=it("symbols"),ur=it("op-symbols"),fr=it("wks"),dr=!rr||!rr[Zn]||!rr[Zn].findChild,hr=c&&s((function(){return 7!=An(ar({},"a",{get:function(){return ar(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=ir(Kn,e);r&&delete Kn[e],ar(t,e,n),r&&t!==Kn&&ar(Kn,e,r)}:ar,pr=function(t,e){var n=lr[t]=An(er);return Jn(n,{type:Xn,tag:t,description:e}),c||(n.description=e),n},_r=function(t,e,n){t===Kn&&_r(ur,e,n),Nt(t);var r=vt(e);return Nt(n),ct(lr,r)?(n.enumerable?(ct(t,Wn)&&t[Wn][r]&&(t[Wn][r]=!1),n=An(n,{enumerable:_(0,!1)})):(ct(t,Wn)||ar(t,Wn,_(1,{})),t[Wn][r]=!0),hr(t,r,n)):ar(t,r,n)},gr=function(t,e){Nt(t);var n=E(e),r=_n(n).concat(vr(n));return Gn(r,(function(e){c&&!f(br,n,e)||_r(t,e,n[e])})),t},br=function(t){var e=vt(t),n=f(sr,this,e);return!(this===Kn&&ct(lr,e)&&!ct(ur,e))&&(!(n||!ct(this,e)||!ct(lr,e)||ct(this,Wn)&&this[Wn][e])||n)},mr=function(t,e){var n=E(t),r=vt(e);if(n!==Kn||!ct(lr,r)||ct(ur,r)){var i=ir(n,r);return!i||!ct(lr,r)||ct(n,Wn)&&n[Wn][r]||(i.enumerable=!0),i}},yr=function(t){var e=or(E(t)),n=[];return Gn(e,(function(t){ct(lr,t)||ct(Qt,t)||cr(n,t)})),n},vr=function(t){var e=t===Kn,n=or(e?ur:E(t)),r=[];return Gn(n,(function(t){!ct(lr,t)||e&&!ct(Kn,t)||cr(r,lr[t])})),r};U||(tr=function(){if(P(er,this))throw nr("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?pn(arguments[0]):void 0,e=dt(t),n=function(t){this===Kn&&f(n,ur,t),ct(this,Wn)&&ct(this[Wn],e)&&(this[Wn][e]=!1),hr(this,e,_(1,t))};return c&&dr&&hr(Kn,e,{configurable:!0,set:n}),pr(e,t)},er=tr[Zn],oe(er,"toString",(function(){return Qn(this).tag})),oe(tr,"withoutSetter",(function(t){return pr(dt(t),t)})),p.f=br,Pt.f=_r,bn.f=gr,At.f=mr,xe.f=zn.f=yr,ke.f=vr,Dn.f=function(t){return pr(gt(t),t)},c&&(Fn(er,"description",{configurable:!0,get:function(){return Qn(this).description}}),oe(Kn,"propertyIsEnumerable",br,{unsafe:!0}))),je({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:tr}),Gn(_n(fr),(function(t){Pn(t)})),je({target:Xn,stat:!0,forced:!U},{useSetter:function(){dr=!0},useSimple:function(){dr=!1}}),je({target:"Object",stat:!0,forced:!U,sham:!c},{create:function(t,e){return void 0===e?An(t):gr(An(t),e)},defineProperty:_r,defineProperties:gr,getOwnPropertyDescriptor:mr}),je({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:yr}),Hn(),In(tr,Xn),Qt[Wn]=!0;var wr=U&&!!Symbol.for&&!!Symbol.keyFor,xr=it("string-to-symbol-registry"),kr=it("symbol-to-string-registry");je({target:"Symbol",stat:!0,forced:!wr},{for:function(t){var e=pn(t);if(ct(xr,e))return xr[e];var n=L("Symbol")(e);return xr[e]=n,kr[n]=e,n}});var Mr=it("symbol-to-string-registry");je({target:"Symbol",stat:!0,forced:!wr},{keyFor:function(t){if(!G(t))throw TypeError(X(t)+" is not a symbol");if(ct(Mr,t))return Mr[t]}});var Sr=Function.prototype,Ar=Sr.apply,Tr=Sr.call,Cr="object"==typeof Reflect&&Reflect.apply||(l?Tr.bind(Ar):function(){return Tr.apply(Ar,arguments)}),Er=y([].slice),Nr=y([].push),Or=String,zr=L("JSON","stringify"),Fr=y(/./.exec),Dr=y("".charAt),jr=y("".charCodeAt),Lr=y("".replace),Pr=y(1..toString),Hr=/[\uD800-\uDFFF]/g,Rr=/^[\uD800-\uDBFF]$/,Br=/^[\uDC00-\uDFFF]$/,Ir=!U||s((function(){var t=L("Symbol")();return"[null]"!=zr([t])||"{}"!=zr({a:t})||"{}"!=zr(Object(t))})),Yr=s((function(){return'"\\udf06\\ud834"'!==zr("\udf06\ud834")||'"\\udead"'!==zr("\udead")})),qr=function(t,e){var n=Er(arguments),r=function(t){if(F(t))return t;if(Le(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?Nr(n,i):"number"!=typeof i&&"Number"!=x(i)&&"String"!=x(i)||Nr(n,pn(i))}var a=n.length,o=!0;return function(t,e){if(o)return o=!1,e;if(Le(this))return e;for(var r=0;r<a;r++)if(n[r]===t)return e}}}(e);if(F(r)||void 0!==t&&!G(t))return n[1]=function(t,e){if(F(r)&&(e=f(r,this,Or(t),e)),!G(e))return e},Cr(zr,null,n)},Ur=function(t,e,n){var r=Dr(n,e-1),i=Dr(n,e+1);return Fr(Rr,t)&&!Fr(Br,i)||Fr(Br,t)&&!Fr(Rr,r)?"\\u"+Pr(jr(t,0),16):t};zr&&je({target:"JSON",stat:!0,arity:3,forced:Ir||Yr},{stringify:function(t,e,n){var r=Er(arguments),i=Cr(Ir?qr:zr,null,r);return Yr&&"string"==typeof i?Lr(i,Hr,Ur):i}});var $r=!U||s((function(){ke.f(1)}));je({target:"Object",stat:!0,forced:$r},{getOwnPropertySymbols:function(t){var e=ke.f;return e?e(ot(t)):[]}}),Pn("asyncIterator");var Vr=o.Symbol,Gr=Vr&&Vr.prototype;if(c&&F(Vr)&&(!("description"in Gr)||void 0!==Vr().description)){var Wr={},Xr=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:pn(arguments[0]),e=P(Gr,this)?new Vr(t):void 0===t?Vr():Vr(t);return""===t&&(Wr[e]=!0),e};Ae(Xr,Vr),Xr.prototype=Gr,Gr.constructor=Xr;var Zr="Symbol(test)"==String(Vr("test")),Jr=y(Gr.valueOf),Qr=y(Gr.toString),Kr=/^Symbol\((.*)\)[^)]+$/,ti=y("".replace),ei=y("".slice);Fn(Gr,"description",{configurable:!0,get:function(){var t=Jr(this);if(ct(Wr,t))return"";var e=Qr(t),n=Zr?ei(e,7,-1):ti(e,Kr,"$1");return""===n?void 0:n}}),je({global:!0,constructor:!0,forced:!0},{Symbol:Xr})}Pn("hasInstance"),Pn("isConcatSpreadable"),Pn("iterator"),Pn("match"),Pn("matchAll"),Pn("replace"),Pn("search"),Pn("species"),Pn("split"),Pn("toPrimitive"),Hn(),Pn("toStringTag"),In(L("Symbol"),"Symbol"),Pn("unscopables"),In(o.JSON,"JSON",!0),In(Math,"Math",!0),je({global:!0},{Reflect:{}}),In(o.Reflect,"Reflect",!0),jn.Symbol;var ni={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ri=kt("span").classList,ii=ri&&ri.constructor&&ri.constructor.prototype,ai=ii===Object.prototype?void 0:ii,oi=Pt.f,si=gt("unscopables"),ci=Array.prototype;null==ci[si]&&oi(ci,si,{configurable:!0,value:An(null)});var li,ui,fi,di=function(t){ci[si][t]=!0},hi={},pi=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_i=Jt("IE_PROTO"),gi=Object,bi=gi.prototype,mi=pi?gi.getPrototypeOf:function(t){var e=ot(t);if(ct(e,_i))return e[_i];var n=e.constructor;return F(n)&&e instanceof n?n.prototype:e instanceof gi?bi:null},yi=gt("iterator"),vi=!1;[].keys&&("next"in(fi=[].keys())?(ui=mi(mi(fi)))!==Object.prototype&&(li=ui):vi=!0);var wi=!j(li)||s((function(){var t={};return li[yi].call(t)!==t}));wi&&(li={}),F(li[yi])||oe(li,yi,(function(){return this}));var xi={IteratorPrototype:li,BUGGY_SAFARI_ITERATORS:vi},ki=xi.IteratorPrototype,Mi=function(){return this},Si=String,Ai=TypeError,Ti=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return y(J(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Nt(n),function(t){if("object"==typeof t||F(t))return t;throw Ai("Can't set "+Si(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),Ci=Yt.PROPER,Ei=Yt.CONFIGURABLE,Ni=xi.IteratorPrototype,Oi=xi.BUGGY_SAFARI_ITERATORS,zi=gt("iterator"),Fi="keys",Di="values",ji="entries",Li=function(){return this},Pi=function(t,e,n,r,i,a,o){!function(t,e,n,r){var i=e+" Iterator";t.prototype=An(ki,{next:_(+!r,n)}),In(t,i,!1),hi[i]=Mi}(n,e,r);var s,c,l,u=function(t){if(t===i&&b)return b;if(!Oi&&t in p)return p[t];switch(t){case Fi:case Di:case ji:return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",h=!1,p=t.prototype,g=p[zi]||p["@@iterator"]||i&&p[i],b=!Oi&&g||u(i),m="Array"==e&&p.entries||g;if(m&&(s=mi(m.call(new t)))!==Object.prototype&&s.next&&(mi(s)!==Ni&&(Ti?Ti(s,Ni):F(s[zi])||oe(s,zi,Li)),In(s,d,!0)),Ci&&i==Di&&g&&g.name!==Di&&(Ei?Ht(p,"name",Di):(h=!0,b=function(){return f(g,this)})),i)if(c={values:u(Di),keys:a?b:u(Fi),entries:u(ji)},o)for(l in c)(Oi||h||!(l in p))&&oe(p,l,c[l]);else je({target:e,proto:!0,forced:Oi||h},c);return p[zi]!==b&&oe(p,zi,b,{name:i}),hi[e]=b,c},Hi=function(t,e){return{value:t,done:e}},Ri=Pt.f,Bi="Array Iterator",Ii=ie.set,Yi=ie.getterFor(Bi),qi=Pi(Array,"Array",(function(t,e){Ii(this,{type:Bi,target:E(t),index:0,kind:e})}),(function(){var t=Yi(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Hi(void 0,!0)):Hi("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Ui=hi.Arguments=hi.Array;if(di("keys"),di("values"),di("entries"),c&&"values"!==Ui.name)try{Ri(Ui,"name",{value:"values"})}catch(t){}var $i=gt("iterator"),Vi=gt("toStringTag"),Gi=qi.values,Wi=function(t,e){if(t){if(t[$i]!==Gi)try{Ht(t,$i,Gi)}catch(e){t[$i]=Gi}if(t[Vi]||Ht(t,Vi,e),ni[e])for(var n in qi)if(t[n]!==qi[n])try{Ht(t,n,qi[n])}catch(e){t[n]=qi[n]}}};for(var Xi in ni)Wi(o[Xi]&&o[Xi].prototype,Xi);Wi(ai,"DOMTokenList"),Pn("dispose"),Pn("asyncDispose");var Zi=L("Symbol"),Ji=Zi.keyFor,Qi=y(Zi.prototype.valueOf);je({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Ji(Qi(t))}catch(t){return!1}}});for(var Ki=L("Symbol"),ta=Ki.isWellKnown,ea=L("Object","getOwnPropertyNames"),na=y(Ki.prototype.valueOf),ra=it("wks"),ia=0,aa=ea(Ki),oa=aa.length;ia<oa;ia++)try{var sa=aa[ia];G(Ki[sa])&&gt(sa)}catch(t){}je({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(ta&&ta(t))return!0;try{for(var e=na(t),n=0,r=ea(ra),i=r.length;n<i;n++)if(ra[r[n]]==e)return!0}catch(t){}return!1}}),Pn("matcher"),Pn("metadataKey"),Pn("observable"),Pn("metadata"),Pn("patternMatch"),Pn("replaceAll");var ca=Object.assign,la=Object.defineProperty,ua=y([].concat),fa=!ca||s((function(){if(c&&1!==ca({b:1},ca(la({},"a",{enumerable:!0,get:function(){la(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=ca({},t)[n]||_n(ca({},e)).join("")!=r}))?function(t,e){for(var n=arguments,r=ot(t),i=arguments.length,a=1,o=ke.f,s=p.f;i>a;)for(var l,u=S(n[a++]),d=o?ua(_n(u),o(u)):_n(u),h=d.length,_=0;h>_;)l=d[_++],c&&!f(s,u,l)||(r[l]=u[l]);return r}:ca;je({target:"Object",stat:!0,arity:2,forced:Object.assign!==fa},{assign:fa}),jn.Object.assign;var da=y("".charAt),ha=y("".charCodeAt),pa=y("".slice),_a=function(t){return function(e,n){var r,i,a=pn(C(e)),o=ue(n),s=a.length;return o<0||o>=s?t?"":void 0:(r=ha(a,o))<55296||r>56319||o+1===s||(i=ha(a,o+1))<56320||i>57343?t?da(a,o):r:t?pa(a,o,o+2):i-56320+(r-55296<<10)+65536}},ga={codeAt:_a(!1),charAt:_a(!0)}.charAt,ba="String Iterator",ma=ie.set,ya=ie.getterFor(ba);Pi(String,"String",(function(t){ma(this,{type:ba,string:pn(t),index:0})}),(function(){var t,e=ya(this),n=e.string,r=e.index;return r>=n.length?Hi(void 0,!0):(t=ga(n,r),e.index+=t.length,Hi(t,!1))}));var va=function(t,e,n,r){try{return r?e(Nt(n)[0],n[1]):e(n)}catch(e){!function(t,e,n){var r,i;Nt(t);try{if(!(r=Q(t,"return"))){if("throw"===e)throw n;return n}r=f(r,t)}catch(t){i=!0,r=t}if("throw"===e)throw n;if(i)throw r;Nt(r)}(t,"throw",e)}},wa=gt("iterator"),xa=Array.prototype,ka=gt("iterator"),Ma=function(t){if(!A(t))return Q(t,ka)||Q(t,"@@iterator")||hi[$e(t)]},Sa=TypeError,Aa=Array,Ta=gt("iterator"),Ca=!1;try{var Ea=0,Na={next:function(){return{done:!!Ea++}},return:function(){Ca=!0}};Na[Ta]=function(){return this},Array.from(Na,(function(){throw 2}))}catch(t){}var Oa=!function(t,e){if(!e&&!Ca)return!1;var n=!1;try{var r={};r[Ta]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Array.from(t)}));je({target:"Array",stat:!0,forced:Oa},{from:function(t){var e=ot(t),n=en(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=Un(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,h,p=Ma(e),_=0;if(p&&(this!==Aa||(void 0===(h=p)||hi.Array!==h&&xa[wa]!==h)))for(l=function(t,e){var n=arguments.length<2?Ma(t):e;if(J(n))return Nt(f(n,t));throw Sa(X(t)+" is not iterable")}(e,p),u=l.next,s=n?new this:[];!(c=f(u,l)).done;_++)d=a?va(l,i,[c.value,_],!0):c.value,Re(s,_,d);else for(o=_e(e),s=n?new this(o):Aa(o);o>_;_++)d=a?i(e[_],_):e[_],Re(s,_,d);return s.length=_,s}}),jn.Array.from;var za={},Fa={formatting:{n_dec:0},layout:{layout_order:"stack-3"},color:{},color_single:"#1d6996",color_single_overrides:"China: red",color_mode:"category",column_chart:!1,sort_enabled:!0,sort_control:!1,sort_ascending:!1,sort_descending_text:"Highest",sort_ascending_text:"Lowest",controls_style:{},button_style:{},axis_color:"#dddddd",axis_text_color:null,axis_font_size:1,label_max_size:1,label_color_in:null,label_color_out:null,show_value:!0,label_mode:"axis",label_axis_width:5,blank_cells:"interpolate",counter:!0,counter_font_size:10,counter_line_height:1,counter_color:"#cccccc",totaliser:!0,totaliser_label:"Total:",totaliser_font_size:4,totaliser_space_before:1.3,totaliser_color:"#cccccc",caption_mode:"text_legend",caption_font_size:1.2,caption_text_color:"#000000",caption_background_color:"#ffffff",caption_opacity:1,caption_border_color:"#ffffff",caption_text_align:"center",caption_border_radius:.5,caption_padding:1,caption_position:"center-center",caption_space_between:1,caption_image_width:50,caption_image_position:"column",annotations_enabled:!0,annotations_content:"",annotations_align:"middle",annotations_offset:"on",annotations_text_color:null,annotations_text_size:1,annotations_text_weight:"normal",annotations_line_color:null,annotations_line_opacity:1,annotations_line_width:1,annotations_line_dash:0,bar_opacity:.85,padding_right:7,legend_container:{},legend_categorical:{max_width:100},legend_filter:[],text_legend:"auto",text_legend_title:!0,text_legend_subtitle:!0,text_legend_caption:!0,text_legend_bold:!0,number_of_bars:10,bar_min_value:null,bar_margin:10,height_mode:"fill_space",bar_height:2,bar_empty_spaces:!1,image_height:90,image_width:145,image_margin_right:-20,image_scale:"fill",image_circle:!0,index:0,animation_duration:.5,timeline:{color_background:"#ffffff",color_axes:"#aaaaaa",graph_height:6,graph:!1,margin:{top:.75,left:.75,right:0,bottom:0}},reloader:{},scale_type:"auto",scale_min:null,scale_max:1e4},Da="http://www.w3.org/1999/xhtml",ja={svg:"http://www.w3.org/2000/svg",xhtml:Da,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function La(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ja.hasOwnProperty(e)?{space:ja[e],local:t}:t}function Pa(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Da&&e.documentElement.namespaceURI===Da?e.createElement(t):e.createElementNS(n,t)}}function Ha(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ra(t){var e=La(t);return(e.local?Ha:Pa)(e)}function Ba(){}function Ia(t){return null==t?Ba:function(){return this.querySelector(t)}}function Ya(){return[]}function qa(t){return null==t?Ya:function(){return this.querySelectorAll(t)}}function Ua(t){return function(){return this.matches(t)}}function $a(t){return new Array(t.length)}function Va(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Va.prototype={constructor:Va,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ga="$";function Wa(t,e,n,r,i,a){for(var o,s=0,c=e.length,l=a.length;s<l;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new Va(t,a[s]);for(;s<c;++s)(o=e[s])&&(i[s]=o)}function Xa(t,e,n,r,i,a,o){var s,c,l,u={},f=e.length,d=a.length,h=new Array(f);for(s=0;s<f;++s)(c=e[s])&&(h[s]=l=Ga+o.call(c,c.__data__,s,e),l in u?i[s]=c:u[l]=c);for(s=0;s<d;++s)(c=u[l=Ga+o.call(t,a[s],s,a)])?(r[s]=c,c.__data__=a[s],u[l]=null):n[s]=new Va(t,a[s]);for(s=0;s<f;++s)(c=e[s])&&u[h[s]]===c&&(i[s]=c)}function Za(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ja(t){return function(){this.removeAttribute(t)}}function Qa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ka(t,e){return function(){this.setAttribute(t,e)}}function to(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function eo(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function no(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ro(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function io(t){return function(){this.style.removeProperty(t)}}function ao(t,e,n){return function(){this.style.setProperty(t,e,n)}}function oo(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function so(t,e){return t.style.getPropertyValue(e)||ro(t).getComputedStyle(t,null).getPropertyValue(e)}function co(t){return function(){delete this[t]}}function lo(t,e){return function(){this[t]=e}}function uo(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function fo(t){return t.trim().split(/^|\s+/)}function ho(t){return t.classList||new po(t)}function po(t){this._node=t,this._names=fo(t.getAttribute("class")||"")}function _o(t,e){for(var n=ho(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function go(t,e){for(var n=ho(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function bo(t){return function(){_o(this,t)}}function mo(t){return function(){go(this,t)}}function yo(t,e){return function(){(e.apply(this,arguments)?_o:go)(this,t)}}function vo(){this.textContent=""}function wo(t){return function(){this.textContent=t}}function xo(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ko(){this.innerHTML=""}function Mo(t){return function(){this.innerHTML=t}}function So(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Ao(){this.nextSibling&&this.parentNode.appendChild(this)}function To(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Co(){return null}function Eo(){var t=this.parentNode;t&&t.removeChild(this)}function No(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Oo(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}po.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var zo={},Fo=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(zo={mouseenter:"mouseover",mouseleave:"mouseout"}));function Do(t,e,n){return t=jo(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function jo(t,e,n){return function(r){var i=Fo;Fo=r;try{t.call(this,this.__data__,e,n)}finally{Fo=i}}}function Lo(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function Po(t,e,n){var r=zo.hasOwnProperty(t.type)?Do:jo;return function(i,a,o){var s,c=this.__on,l=r(e,a,o);if(c)for(var u=0,f=c.length;u<f;++u)if((s=c[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},c?c.push(s):this.__on=[s]}}function Ho(t,e,n){var r=ro(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Ro(t,e){return function(){return Ho(this,t,e)}}function Bo(t,e){return function(){return Ho(this,t,e.apply(this,arguments))}}var Io=[null];function Yo(t,e){this._groups=t,this._parents=e}function qo(){return new Yo([[document.documentElement]],Io)}function Uo(t){return"string"==typeof t?new Yo([[document.querySelector(t)]],[document.documentElement]):new Yo([[t]],Io)}function $o(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}Yo.prototype=qo.prototype={constructor:Yo,select:function(t){"function"!=typeof t&&(t=Ia(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,s=e[i],c=s.length,l=r[i]=new Array(c),u=0;u<c;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),l[u]=o);return new Yo(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=qa(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],c=s.length,l=0;l<c;++l)(o=s[l])&&(r.push(t.call(o,o.__data__,l,s)),i.push(o));return new Yo(r,i)},filter:function(t){"function"!=typeof t&&(t=Ua(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new Yo(r,this._parents)},data:function(t,e){if(!t)return h=new Array(this.size()),l=-1,this.each((function(t){h[++l]=t})),h;var n=e?Xa:Wa,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=i.length,o=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var u=r[l],f=i[l],d=f.length,h=t.call(u,u&&u.__data__,l,r),p=h.length,_=s[l]=new Array(p),g=o[l]=new Array(p);n(u,f,_,g,c[l]=new Array(d),h,e);for(var b,m,y=0,v=0;y<p;++y)if(b=_[y]){for(y>=v&&(v=y+1);!(m=g[v])&&++v<p;);b._next=m||null}}return(o=new Yo(o,r))._enter=s,o._exit=c,o},enter:function(){return new Yo(this._enter||this._groups.map($a),this._parents)},exit:function(){return new Yo(this._exit||this._groups.map($a),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],u=n[s],f=l.length,d=o[s]=new Array(f),h=0;h<f;++h)(c=l[h]||u[h])&&(d[h]=c);for(;s<r;++s)o[s]=e[s];return new Yo(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Za);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,s=n[a],c=s.length,l=i[a]=new Array(c),u=0;u<c;++u)(o=s[u])&&(l[u]=o);l.sort(e)}return new Yo(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=La(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Qa:Ja:"function"==typeof e?n.local?no:eo:n.local?to:Ka)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?io:"function"==typeof e?oo:ao)(t,e,null==n?"":n)):so(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?co:"function"==typeof e?uo:lo)(t,e)):this.node()[t]},classed:function(t,e){var n=fo(t+"");if(arguments.length<2){for(var r=ho(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?yo:e?bo:mo)(n,e))},text:function(t){return arguments.length?this.each(null==t?vo:("function"==typeof t?xo:wo)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ko:("function"==typeof t?So:Mo)(t)):this.node().innerHTML},raise:function(){return this.each(Ao)},lower:function(){return this.each(To)},append:function(t){var e="function"==typeof t?t:Ra(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:Ra(t),r=null==e?Co:"function"==typeof e?e:Ia(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Eo)},clone:function(t){return this.select(t?Oo:No)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?Po:Lo,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(r=0,c=s[l];r<o;++r)if((i=a[r]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?Bo:Ro)(t,e))}};var Vo,Go=(1===(Vo=$o).length&&(Vo=function(t){return function(e,n){return $o(t(e),n)}}(Vo)),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;Vo(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;Vo(t[i],e)>0?r=i:n=i+1}return n}}),Wo=Go.right;function Xo(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Zo(t){return null===t?NaN:+t}function Jo(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r<i;)a[r]=t+r*n;return a}var Qo=Math.sqrt(50),Ko=Math.sqrt(10),ts=Math.sqrt(2);function es(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Qo?10:a>=Ko?5:a>=ts?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Qo?10:a>=Ko?5:a>=ts?2:1)}function ns(t,e,n){if(null==n&&(n=Zo),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function rs(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a<i;)if(null!=(n=t[a])&&n>=n)for(r=n;++a<i;)null!=(n=t[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=e(t[a],a,t))&&n>=n)for(r=n;++a<i;)null!=(n=e(t[a],a,t))&&n>r&&(r=n);return r}function is(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function as(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var os="$";function ss(){}function cs(t,e){var n=new ss;if(t instanceof ss)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}function ls(){}ss.prototype=cs.prototype={constructor:ss,has:function(t){return os+t in this},get:function(t){return this[os+t]},set:function(t,e){return this[os+t]=e,this},remove:function(t){var e=os+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===os&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===os&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===os&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===os&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===os&&++t;return t},empty:function(){for(var t in this)if(t[0]===os)return!1;return!0},each:function(t){for(var e in this)e[0]===os&&t(this[e],e.slice(1),this)}};var us=cs.prototype;function fs(t,e){var n=new ls;if(t instanceof ls)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}ls.prototype=fs.prototype={constructor:ls,has:us.has,add:function(t){return this[os+(t+="")]=t,this},remove:us.remove,clear:us.clear,values:us.keys,size:us.size,empty:us.empty,each:us.each};var ds=Array.prototype,hs=ds.map,ps=ds.slice;function _s(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function gs(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function bs(){}var ms=.7,ys=1/ms,vs="\\s*([+-]?\\d+)\\s*",ws="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",xs="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ks=/^#([0-9a-f]{3,8})$/,Ms=new RegExp("^rgb\\("+[vs,vs,vs]+"\\)$"),Ss=new RegExp("^rgb\\("+[xs,xs,xs]+"\\)$"),As=new RegExp("^rgba\\("+[vs,vs,vs,ws]+"\\)$"),Ts=new RegExp("^rgba\\("+[xs,xs,xs,ws]+"\\)$"),Cs=new RegExp("^hsl\\("+[ws,xs,xs]+"\\)$"),Es=new RegExp("^hsla\\("+[ws,xs,xs,ws]+"\\)$"),Ns={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Os(){return this.rgb().formatHex()}function zs(){return this.rgb().formatRgb()}function Fs(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ks.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ds(e):3===n?new Hs(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?js(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?js(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ms.exec(t))?new Hs(e[1],e[2],e[3],1):(e=Ss.exec(t))?new Hs(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=As.exec(t))?js(e[1],e[2],e[3],e[4]):(e=Ts.exec(t))?js(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Cs.exec(t))?Ys(e[1],e[2]/100,e[3]/100,1):(e=Es.exec(t))?Ys(e[1],e[2]/100,e[3]/100,e[4]):Ns.hasOwnProperty(t)?Ds(Ns[t]):"transparent"===t?new Hs(NaN,NaN,NaN,0):null}function Ds(t){return new Hs(t>>16&255,t>>8&255,255&t,1)}function js(t,e,n,r){return r<=0&&(t=e=n=NaN),new Hs(t,e,n,r)}function Ls(t){return t instanceof bs||(t=Fs(t)),t?new Hs((t=t.rgb()).r,t.g,t.b,t.opacity):new Hs}function Ps(t,e,n,r){return 1===arguments.length?Ls(t):new Hs(t,e,n,null==r?1:r)}function Hs(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Rs(){return"#"+Is(this.r)+Is(this.g)+Is(this.b)}function Bs(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Is(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ys(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new $s(t,e,n,r)}function qs(t){if(t instanceof $s)return new $s(t.h,t.s,t.l,t.opacity);if(t instanceof bs||(t=Fs(t)),!t)return new $s;if(t instanceof $s)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new $s(o,s,c,t.opacity)}function Us(t,e,n,r){return 1===arguments.length?qs(t):new $s(t,e,n,null==r?1:r)}function $s(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Vs(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}_s(bs,Fs,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Os,formatHex:Os,formatHsl:function(){return qs(this).formatHsl()},formatRgb:zs,toString:zs}),_s(Hs,Ps,gs(bs,{brighter:function(t){return t=null==t?ys:Math.pow(ys,t),new Hs(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?ms:Math.pow(ms,t),new Hs(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rs,formatHex:Rs,formatRgb:Bs,toString:Bs})),_s($s,Us,gs(bs,{brighter:function(t){return t=null==t?ys:Math.pow(ys,t),new $s(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ms:Math.pow(ms,t),new $s(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Hs(Vs(t>=240?t-240:t+120,i,r),Vs(t,i,r),Vs(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Gs=Math.PI/180,Ws=180/Math.PI,Xs=.96422,Zs=1,Js=.82521,Qs=4/29,Ks=6/29,tc=3*Ks*Ks,ec=Ks*Ks*Ks;function nc(t){if(t instanceof ic)return new ic(t.l,t.a,t.b,t.opacity);if(t instanceof uc)return fc(t);t instanceof Hs||(t=Ls(t));var e,n,r=cc(t.r),i=cc(t.g),a=cc(t.b),o=ac((.2225045*r+.7168786*i+.0606169*a)/Zs);return r===i&&i===a?e=n=o:(e=ac((.4360747*r+.3850649*i+.1430804*a)/Xs),n=ac((.0139322*r+.0971045*i+.7141733*a)/Js)),new ic(116*o-16,500*(e-o),200*(o-n),t.opacity)}function rc(t,e,n,r){return 1===arguments.length?nc(t):new ic(t,e,n,null==r?1:r)}function ic(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function ac(t){return t>ec?Math.pow(t,1/3):t/tc+Qs}function oc(t){return t>Ks?t*t*t:tc*(t-Qs)}function sc(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function cc(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function lc(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof uc)return new uc(t.h,t.c,t.l,t.opacity);if(t instanceof ic||(t=nc(t)),0===t.a&&0===t.b)return new uc(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Ws;return new uc(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new uc(t,e,n,null==r?1:r)}function uc(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function fc(t){if(isNaN(t.h))return new ic(t.l,0,0,t.opacity);var e=t.h*Gs;return new ic(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}_s(ic,rc,gs(bs,{brighter:function(t){return new ic(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new ic(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Hs(sc(3.1338561*(e=Xs*oc(e))-1.6168667*(t=Zs*oc(t))-.4906146*(n=Js*oc(n))),sc(-.9787684*e+1.9161415*t+.033454*n),sc(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),_s(uc,lc,gs(bs,{brighter:function(t){return new uc(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new uc(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return fc(this).rgb()}}));var dc=-.14861,hc=1.78277,pc=-.29227,_c=-.90649,gc=1.97294,bc=gc*_c,mc=gc*hc,yc=hc*pc-_c*dc;function vc(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof wc)return new wc(t.h,t.s,t.l,t.opacity);t instanceof Hs||(t=Ls(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(yc*r+bc*e-mc*n)/(yc+bc-mc),a=r-i,o=(gc*(n-i)-pc*a)/_c,s=Math.sqrt(o*o+a*a)/(gc*i*(1-i)),c=s?Math.atan2(o,a)*Ws-120:NaN;return new wc(c<0?c+360:c,s,i,t.opacity)}(t):new wc(t,e,n,null==r?1:r)}function wc(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function xc(t){return function(){return t}}function kc(t,e){return function(n){return t+n*e}}function Mc(t,e){var n=e-t;return n?kc(t,n>180||n<-180?n-360*Math.round(n/360):n):xc(isNaN(t)?e:t)}function Sc(t){return 1==(t=+t)?Ac:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):xc(isNaN(e)?n:e)}}function Ac(t,e){var n=e-t;return n?kc(t,n):xc(isNaN(t)?e:t)}_s(wc,vc,gs(bs,{brighter:function(t){return t=null==t?ys:Math.pow(ys,t),new wc(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?ms:Math.pow(ms,t),new wc(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Gs,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Hs(255*(e+n*(dc*r+hc*i)),255*(e+n*(pc*r+_c*i)),255*(e+n*(gc*r)),this.opacity)}}));var Tc=function t(e){var n=Sc(e);function r(t,e){var r=n((t=Ps(t)).r,(e=Ps(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Ac(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);var Cc,Ec=(Cc=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return function(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}((n-r/e)*e,o,i,a,s)}},function(t){var e,n,r=t.length,i=new Array(r),a=new Array(r),o=new Array(r);for(e=0;e<r;++e)n=Ps(t[e]),i[e]=n.r||0,a[e]=n.g||0,o[e]=n.b||0;return i=Cc(i),a=Cc(a),o=Cc(o),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=o(t),n+""}});function Nc(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Oc(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=Hc(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function zc(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Fc(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Dc(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Hc(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var jc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lc=new RegExp(jc.source,"g");function Pc(t,e){var n,r,i,a=jc.lastIndex=Lc.lastIndex=0,o=-1,s=[],c=[];for(t+="",e+="";(n=jc.exec(t))&&(r=Lc.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Fc(n,r)})),a=Lc.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function Hc(t,e){var n,r=typeof e;return null==e||"boolean"===r?xc(e):("number"===r?Fc:"string"===r?(n=Fs(e))?(e=n,Tc):Pc:e instanceof Fs?Tc:e instanceof Date?zc:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Nc:Array.isArray(e)?Oc:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Dc:Fc)(t,e)}function Rc(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Bc,Ic,Yc,qc,Uc=180/Math.PI,$c={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vc(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Uc,skewX:Math.atan(c)*Uc,scaleX:o,scaleY:s}}function Gc(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],c=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var c=o.push("translate(",null,e,null,n);s.push({i:c-4,x:Fc(t,i)},{i:c-2,x:Fc(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,c),function(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fc(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fc(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:Fc(t,n)},{i:s-2,x:Fc(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n<r;)s[(e=c[n]).i]=e.x(t);return s.join("")}}}var Wc=Gc((function(t){return"none"===t?$c:(Bc||(Bc=document.createElement("DIV"),Ic=document.documentElement,Yc=document.defaultView),Bc.style.transform=t,t=Yc.getComputedStyle(Ic.appendChild(Bc),null).getPropertyValue("transform"),Ic.removeChild(Bc),Vc(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Xc=Gc((function(t){return null==t?$c:(qc||(qc=document.createElementNS("http://www.w3.org/2000/svg","g")),qc.setAttribute("transform",t),(t=qc.transform.baseVal.consolidate())?Vc((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):$c)}),", ",")",")");var Zc=function(t){return function(e,n){var r=t((e=Us(e)).h,(n=Us(n)).h),i=Ac(e.s,n.s),a=Ac(e.l,n.l),o=Ac(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+""}}}(Mc);function Jc(t,e){var n=Ac((t=rc(t)).l,(e=rc(e)).l),r=Ac(t.a,e.a),i=Ac(t.b,e.b),a=Ac(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+""}}var Qc=function(t){return function(e,n){var r=t((e=lc(e)).h,(n=lc(n)).h),i=Ac(e.c,n.c),a=Ac(e.l,n.l),o=Ac(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}(Mc);function Kc(t){return function e(n){function r(e,r){var i=t((e=vc(e)).h,(r=vc(r)).h),a=Ac(e.s,r.s),o=Ac(e.l,r.l),s=Ac(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}Kc(Mc);var tl=Kc(Ac);function el(t){return+t}var nl=[0,1];function rl(t){return t}function il(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function al(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function ol(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=il(i,r),a=n(o,a)):(r=il(r,i),a=n(a,o)),function(t){return a(r(t))}}function sl(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=il(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Wo(t,e,1,r)-1;return a[n](i[n](e))}}function cl(t,e){return function(){var t,e,n,r,i,a,o=nl,s=nl,c=Hc,l=rl;function u(){return r=Math.min(o.length,s.length)>2?sl:ol,i=a=null,f}function f(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(l(e)))}return f.invert=function(n){return l(e((a||(a=r(s,o.map(t),Fc)))(n)))},f.domain=function(t){return arguments.length?(o=hs.call(t,el),l===rl||(l=al(o)),u()):o.slice()},f.range=function(t){return arguments.length?(s=ps.call(t),u()):s.slice()},f.rangeRound=function(t){return s=ps.call(t),c=Rc,u()},f.clamp=function(t){return arguments.length?(l=t?al(o):rl,f):l!==rl},f.interpolate=function(t){return arguments.length?(c=t,u()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,u()}}()(t,e)}function ll(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function ul(t){return(t=ll(Math.abs(t)))?t[1]:NaN}var fl,dl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hl(t){if(!(e=dl.exec(t)))throw new Error("invalid format: "+t);var e;return new pl({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function pl(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function _l(t,e){var n=ll(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}hl.prototype=pl.prototype,pl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gl={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return _l(100*t,e)},r:_l,s:function(t,e){var n=ll(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(fl=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ll(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function bl(t){return t}var ml,yl,vl,wl=Array.prototype.map,xl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kl(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?bl:(e=wl.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?bl:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(wl.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=hl(t)).fill,n=t.align,f=t.sign,d=t.symbol,h=t.zero,p=t.width,_=t.comma,g=t.precision,b=t.trim,m=t.type;"n"===m?(_=!0,m="g"):gl[m]||(void 0===g&&(g=12),b=!0,m="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var y="$"===d?i:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===d?a:/[%p]/.test(m)?c:"",w=gl[m],x=/[defgprs%]/.test(m);function k(t){var i,a,c,d=y,k=v;if("c"===m)k=w(t)+k,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),d=(M?"("===f?f:l:"-"===f||"("===f?"":f)+d,k=("s"===m?xl[8+fl/3]:"")+k+(M&&"("===f?")":""),x)for(i=-1,a=t.length;++i<a;)if(48>(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}_&&!h&&(t=r(t,1/0));var S=d.length+t.length+k.length,A=S<p?new Array(p-S+1).join(e):"";switch(_&&h&&(t=r(A+t,A.length?p-k.length:1/0),A=""),n){case"<":t=d+t+k+A;break;case"=":t=d+A+t+k;break;case"^":t=A.slice(0,S=A.length>>1)+d+t+k+A.slice(S);break;default:t=A+d+t+k}return s(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var n=f(((t=hl(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ul(e)/3))),i=Math.pow(10,-r),a=xl[8+r/3];return function(t){return n(i*t)+a}}}}function Ml(t){return Math.max(0,-ul(Math.abs(t)))}function Sl(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ul(e)/3)))-ul(Math.abs(t)))}function Al(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ul(e)-ul(t))+1}function Tl(t,e,n,r){var i,a=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Qo?i*=10:a>=Ko?i*=5:a>=ts&&(i*=2),e<t?-i:i}(t,e,n);switch((r=hl(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Sl(a,o))||(r.precision=i),vl(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Al(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ml(a))||(r.precision=i-2*("%"===r.type))}return yl(r)}function Cl(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=es(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return r&&a.reverse(),a}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Tl(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],c=i[o];return c<s&&(r=s,s=c,c=r,r=a,a=o,o=r),(r=es(s,c,n))>0?r=es(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=es(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function El(){var t=cl(rl,rl);return t.copy=function(){return e=t,El().domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown());var e},is.apply(t,arguments),Cl(t)}function Nl(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=ns(e,t/i);return a}function a(e){return isNaN(e=+e)?t:n[Wo(r,e)]}return a.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,a=t.length;r<a;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort($o),i()},a.range=function(t){return arguments.length?(n=ps.call(t),i()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return r.slice()},a.copy=function(){return Nl().domain(e).range(n).unknown(t)},is.apply(a,arguments)}function Ol(){var t,e=0,n=1,r=1,i=[.5],a=[0,1];function o(e){return e<=e?a[Wo(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return o}return o.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],s()):[e,n]},o.range=function(t){return arguments.length?(r=(a=ps.call(t)).length-1,s()):a.slice()},o.invertExtent=function(t){var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return Ol().domain([e,n]).range(a).unknown(t)},is.apply(Cl(o),arguments)}function zl(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[Wo(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=ps.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=ps.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return zl().domain(e).range(n).unknown(t)},is.apply(i,arguments)}ml=kl({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),yl=ml.format,vl=ml.formatPrefix;var Fl=new Date,Dl=new Date;function jl(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return jl((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Fl.setTime(+e),Dl.setTime(+r),t(Fl),t(Dl),Math.floor(n(Fl,Dl))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Ll=1e3,Pl=6e4,Hl=36e5,Rl=864e5,Bl=6048e5,Il=jl((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Ll)}),(function(t,e){return(e-t)/Ll}),(function(t){return t.getUTCSeconds()})),Yl=Il;Il.range;var ql=jl((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ll)}),(function(t,e){t.setTime(+t+e*Pl)}),(function(t,e){return(e-t)/Pl}),(function(t){return t.getMinutes()})),Ul=ql;ql.range;var $l=jl((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ll-t.getMinutes()*Pl)}),(function(t,e){t.setTime(+t+e*Hl)}),(function(t,e){return(e-t)/Hl}),(function(t){return t.getHours()})),Vl=$l;$l.range;var Gl=jl((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Pl)/Rl}),(function(t){return t.getDate()-1})),Wl=Gl;function Xl(t){return jl((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Pl)/Bl}))}Gl.range;var Zl=Xl(0),Jl=Xl(1),Ql=Xl(2),Kl=Xl(3),tu=Xl(4),eu=Xl(5),nu=Xl(6);Zl.range,Jl.range,Ql.range,Kl.range,tu.range,eu.range,nu.range;var ru=jl((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),iu=ru;ru.range;var au=jl((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));au.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jl((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var ou=au;au.range;var su=jl((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Rl}),(function(t){return t.getUTCDate()-1})),cu=su;function lu(t){return jl((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Bl}))}su.range;var uu=lu(0),fu=lu(1),du=lu(2),hu=lu(3),pu=lu(4),_u=lu(5),gu=lu(6);uu.range,fu.range,du.range,hu.range,pu.range,_u.range,gu.range;var bu=jl((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));bu.every=function(t){return isFinite(t=Math.floor(t))&&t>0?jl((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var mu=bu;function yu(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vu(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function wu(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}bu.range;var xu,ku,Mu,Su={"-":"",_:" ",0:"0"},Au=/^\s*\d+/,Tu=/^%/,Cu=/[\\^$*+?|[\]().{}]/g;function Eu(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Nu(t){return t.replace(Cu,"\\$&")}function Ou(t){return new RegExp("^(?:"+t.map(Nu).join("|")+")","i")}function zu(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Fu(t,e,n){var r=Au.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Du(t,e,n){var r=Au.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ju(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lu(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Pu(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Hu(t,e,n){var r=Au.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ru(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Bu(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Iu(t,e,n){var r=Au.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Yu(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function qu(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Uu(t,e,n){var r=Au.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function $u(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Vu(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Gu(t,e,n){var r=Au.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Wu(t,e,n){var r=Au.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Xu(t,e,n){var r=Au.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Zu(t,e,n){var r=Tu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Ju(t,e,n){var r=Au.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Qu(t,e,n){var r=Au.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ku(t,e){return Eu(t.getDate(),e,2)}function tf(t,e){return Eu(t.getHours(),e,2)}function ef(t,e){return Eu(t.getHours()%12||12,e,2)}function nf(t,e){return Eu(1+Wl.count(ou(t),t),e,3)}function rf(t,e){return Eu(t.getMilliseconds(),e,3)}function af(t,e){return rf(t,e)+"000"}function of(t,e){return Eu(t.getMonth()+1,e,2)}function sf(t,e){return Eu(t.getMinutes(),e,2)}function cf(t,e){return Eu(t.getSeconds(),e,2)}function lf(t){var e=t.getDay();return 0===e?7:e}function uf(t,e){return Eu(Zl.count(ou(t)-1,t),e,2)}function ff(t){var e=t.getDay();return e>=4||0===e?tu(t):tu.ceil(t)}function df(t,e){return t=ff(t),Eu(tu.count(ou(t),t)+(4===ou(t).getDay()),e,2)}function hf(t){return t.getDay()}function pf(t,e){return Eu(Jl.count(ou(t)-1,t),e,2)}function _f(t,e){return Eu(t.getFullYear()%100,e,2)}function gf(t,e){return Eu((t=ff(t)).getFullYear()%100,e,2)}function bf(t,e){return Eu(t.getFullYear()%1e4,e,4)}function mf(t,e){var n=t.getDay();return Eu((t=n>=4||0===n?tu(t):tu.ceil(t)).getFullYear()%1e4,e,4)}function yf(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Eu(e/60|0,"0",2)+Eu(e%60,"0",2)}function vf(t,e){return Eu(t.getUTCDate(),e,2)}function wf(t,e){return Eu(t.getUTCHours(),e,2)}function xf(t,e){return Eu(t.getUTCHours()%12||12,e,2)}function kf(t,e){return Eu(1+cu.count(mu(t),t),e,3)}function Mf(t,e){return Eu(t.getUTCMilliseconds(),e,3)}function Sf(t,e){return Mf(t,e)+"000"}function Af(t,e){return Eu(t.getUTCMonth()+1,e,2)}function Tf(t,e){return Eu(t.getUTCMinutes(),e,2)}function Cf(t,e){return Eu(t.getUTCSeconds(),e,2)}function Ef(t){var e=t.getUTCDay();return 0===e?7:e}function Nf(t,e){return Eu(uu.count(mu(t)-1,t),e,2)}function Of(t){var e=t.getUTCDay();return e>=4||0===e?pu(t):pu.ceil(t)}function zf(t,e){return t=Of(t),Eu(pu.count(mu(t),t)+(4===mu(t).getUTCDay()),e,2)}function Ff(t){return t.getUTCDay()}function Df(t,e){return Eu(fu.count(mu(t)-1,t),e,2)}function jf(t,e){return Eu(t.getUTCFullYear()%100,e,2)}function Lf(t,e){return Eu((t=Of(t)).getUTCFullYear()%100,e,2)}function Pf(t,e){return Eu(t.getUTCFullYear()%1e4,e,4)}function Hf(t,e){var n=t.getUTCDay();return Eu((t=n>=4||0===n?pu(t):pu.ceil(t)).getUTCFullYear()%1e4,e,4)}function Rf(){return"+0000"}function Bf(){return"%"}function If(t){return+t}function Yf(t){return Math.floor(+t/1e3)}function qf(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Uf(){var t=Cl(function(){var t,e,n,r,i,a=0,o=1,s=rl,c=!1;function l(e){return isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}return l.domain=function(i){return arguments.length?(t=r(a=+i[0]),e=r(o=+i[1]),n=t===e?0:1/(e-t),l):[a,o]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(s=t,l):s},l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(a),e=i(o),n=t===e?0:1/(e-t),l}}()(rl));return t.copy=function(){return qf(t,Uf())},as.apply(t,arguments)}function $f(){var t=Cl(function(){var t,e,n,r,i,a,o,s=0,c=.5,l=1,u=rl,f=!1;function d(t){return isNaN(t=+t)?o:(t=.5+((t=+a(t))-e)*(t<e?r:i),u(f?Math.max(0,Math.min(1,t)):t))}return d.domain=function(o){return arguments.length?(t=a(s=+o[0]),e=a(c=+o[1]),n=a(l=+o[2]),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),d):[s,c,l]},d.clamp=function(t){return arguments.length?(f=!!t,d):f},d.interpolator=function(t){return arguments.length?(u=t,d):u},d.unknown=function(t){return arguments.length?(o=t,d):o},function(o){return a=o,t=o(s),e=o(c),n=o(l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),d}}()(rl));return t.copy=function(){return qf(t,$f())},as.apply(t,arguments)}!function(t){xu=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,l=Ou(i),u=zu(i),f=Ou(a),d=zu(a),h=Ou(o),p=zu(o),_=Ou(s),g=zu(s),b=Ou(c),m=zu(c),y={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Ku,e:Ku,f:af,g:gf,G:mf,H:tf,I:ef,j:nf,L:rf,m:of,M:sf,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:If,s:Yf,S:cf,u:lf,U:uf,V:df,w:hf,W:pf,x:null,X:null,y:_f,Y:bf,Z:yf,"%":Bf},v={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vf,e:vf,f:Sf,g:Lf,G:Hf,H:wf,I:xf,j:kf,L:Mf,m:Af,M:Tf,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:If,s:Yf,S:Cf,u:Ef,U:Nf,V:zf,w:Ff,W:Df,x:null,X:null,y:jf,Y:Pf,Z:Rf,"%":Bf},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=b.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=_.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:qu,e:qu,f:Xu,g:Ru,G:Hu,H:$u,I:$u,j:Uu,L:Wu,m:Yu,M:Vu,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:Iu,Q:Ju,s:Qu,S:Gu,u:Du,U:ju,V:Lu,w:Fu,W:Pu,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:Ru,Y:Hu,Z:Bu,"%":Zu};function x(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(o.push(t.slice(c,s)),null!=(i=Su[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(a=e[r])&&(r=a(n,i)),o.push(r),c=s+1);return o.push(t.slice(c,s)),o.join("")}}function k(t,e){return function(n){var r,i,a=wu(1900,void 0,1);if(M(a,t,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(e&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=vu(wu(a.y,0,1))).getUTCDay(),r=i>4||0===i?fu.ceil(r):fu(r),r=cu.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=yu(wu(a.y,0,1))).getDay(),r=i>4||0===i?Jl.ceil(r):Jl(r),r=Wl.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?vu(wu(a.y,0,1)).getUTCDay():yu(wu(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,vu(a)):yu(a)}}function M(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o<s;){if(r>=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Su?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=x(n,y),y.X=x(r,y),y.c=x(e,y),v.x=x(n,v),v.X=x(r,v),v.c=x(e,v),{format:function(t){var e=x(t+="",y);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),ku=xu.format,Mu=xu.parse,xu.utcFormat,xu.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Vf=Array.prototype.slice;function Gf(t){return t}var Wf=1,Xf=2,Zf=3,Jf=4,Qf=1e-6;function Kf(t){return"translate("+(t+.5)+",0)"}function td(t){return"translate(0,"+(t+.5)+")"}function ed(t){return function(e){return+t(e)}}function nd(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function rd(){return!this.__axis}function id(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c=t===Wf||t===Jf?-1:1,l=t===Jf||t===Xf?"x":"y",u=t===Wf||t===Zf?Kf:td;function f(f){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,h=null==i?e.tickFormat?e.tickFormat.apply(e,n):Gf:i,p=Math.max(a,0)+s,_=e.range(),g=+_[0]+.5,b=+_[_.length-1]+.5,m=(e.bandwidth?nd:ed)(e.copy()),y=f.selection?f.selection():f,v=y.selectAll(".domain").data([null]),w=y.selectAll(".tick").data(d,e).order(),x=w.exit(),k=w.enter().append("g").attr("class","tick"),M=w.select("line"),S=w.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(k),M=M.merge(k.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),S=S.merge(k.append("text").attr("fill","currentColor").attr(l,c*p).attr("dy",t===Wf?"0em":t===Zf?"0.71em":"0.32em")),f!==y&&(v=v.transition(f),w=w.transition(f),M=M.transition(f),S=S.transition(f),x=x.transition(f).attr("opacity",Qf).attr("transform",(function(t){return isFinite(t=m(t))?u(t):this.getAttribute("transform")})),k.attr("opacity",Qf).attr("transform",(function(t){var e=this.parentNode.__axis;return u(e&&isFinite(e=e(t))?e:m(t))}))),x.remove(),v.attr("d",t===Jf||t==Xf?o?"M"+c*o+","+g+"H0.5V"+b+"H"+c*o:"M0.5,"+g+"V"+b:o?"M"+g+","+c*o+"V0.5H"+b+"V"+c*o:"M"+g+",0.5H"+b),w.attr("opacity",1).attr("transform",(function(t){return u(m(t))})),M.attr(l+"2",c*a),S.attr(l,c*p).text(h),y.filter(rd).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xf?"start":t===Jf?"end":"middle"),y.each((function(){this.__axis=m}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Vf.call(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Vf.call(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:Vf.call(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(a=o=+t,f):a},f.tickSizeInner=function(t){return arguments.length?(a=+t,f):a},f.tickSizeOuter=function(t){return arguments.length?(o=+t,f):o},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f}function ad(t){return id(Wf,t)}var od={value:function(){}};function sd(){for(var t,e=arguments,n=0,r=arguments.length,i={};n<r;++n){if(!(t=e[n]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new cd(i)}function cd(t){this._=t}function ld(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ud(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=od,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}cd.prototype=sd.prototype={constructor:cd,on:function(t,e){var n,r,i=this._,a=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=a[o]).type)i[n]=ud(i[n],t.name,e);else if(null==e)for(n in i)i[n]=ud(i[n],t.name,null);return this}for(;++o<s;)if((n=(t=a[o]).type)&&(n=ld(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new cd(t)},call:function(t,e){var n=arguments;if((r=arguments.length-2)>0)for(var r,i,a=new Array(r),o=0;o<r;++o)a[o]=n[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,r=(i=this._[t]).length;o<r;++o)i[o].value.apply(e,a)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var fd,dd,hd=0,pd=0,_d=0,gd=1e3,bd=0,md=0,yd=0,vd="object"==typeof performance&&performance.now?performance:Date,wd="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function xd(){return md||(wd(kd),md=vd.now()+yd)}function kd(){md=0}function Md(){this._call=this._time=this._next=null}function Sd(t,e,n){var r=new Md;return r.restart(t,e,n),r}function Ad(){md=(bd=vd.now())+yd,hd=pd=0;try{!function(){xd(),++hd;for(var t,e=fd;e;)(t=md-e._time)>=0&&e._call.call(null,t),e=e._next;--hd}()}finally{hd=0,function(){var t,e,n=fd,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:fd=e);dd=t,Cd(r)}(),md=0}}function Td(){var t=vd.now(),e=t-bd;e>gd&&(yd-=e,bd=t)}function Cd(t){hd||(pd&&(pd=clearTimeout(pd)),t-md>24?(t<1/0&&(pd=setTimeout(Ad,t-vd.now()-yd)),_d&&(_d=clearInterval(_d))):(_d||(bd=vd.now(),_d=setInterval(Td,gd)),hd=1,wd(Ad)))}function Ed(t,e,n){var r=new Md;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Md.prototype=Sd.prototype={constructor:Md,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?xd():+n)+(null==e?0:+e),this._next||dd===this||(dd?dd._next=this:fd=this,dd=this),this._call=t,this._time=n,Cd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Cd())}};var Nd=sd("start","end","cancel","interrupt"),Od=[],zd=0,Fd=1,Dd=2,jd=3,Ld=4,Pd=5,Hd=6;function Rd(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(t){n.state=Fd,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(a){var l,u,f,d;if(n.state!==Fd)return c();for(l in i)if((d=i[l]).name===n.name){if(d.state===jd)return Ed(o);d.state===Ld?(d.state=Hd,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[l]):+l<e&&(d.state=Hd,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[l])}if(Ed((function(){n.state===jd&&(n.state=Ld,n.timer.restart(s,n.delay,n.time),s(a))})),n.state=Dd,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Dd){for(n.state=jd,r=new Array(f=n.tween.length),l=0,u=-1;l<f;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=Pd,1),a=-1,o=r.length;++a<o;)r[a].call(t,i);n.state===Pd&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var r in n.state=Hd,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Sd(a,0,n.time)}(t,n,{name:e,index:r,group:i,on:Nd,tween:Od,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:zd})}function Bd(t,e){var n=Yd(t,e);if(n.state>zd)throw new Error("too late; already scheduled");return n}function Id(t,e){var n=Yd(t,e);if(n.state>jd)throw new Error("too late; already running");return n}function Yd(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function qd(t,e){var n,r;return function(){var i=Id(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function Ud(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=Id(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===e){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function $d(t,e,n){var r=t._id;return t.each((function(){var t=Id(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Yd(t,r).value[e]}}function Vd(t,e){var n;return("number"==typeof e?Fc:e instanceof Fs?Tc:(n=Fs(e))?(e=n,Tc):Pc)(t,e)}function Gd(t){return function(){this.removeAttribute(t)}}function Wd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Xd(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttribute(t);return o===a?null:o===r?i:i=e(r=o,n)}}function Zd(t,e,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===r?i:i=e(r=o,n)}}function Jd(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttribute(t)}}function Qd(t,e,n){var r,i,a;return function(){var o,s,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,c));this.removeAttributeNS(t.space,t.local)}}function Kd(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function th(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function eh(t,e){return function(){Bd(this,t).delay=+e.apply(this,arguments)}}function nh(t,e){return e=+e,function(){Bd(this,t).delay=e}}function rh(t,e){return function(){Id(this,t).duration=+e.apply(this,arguments)}}function ih(t,e){return e=+e,function(){Id(this,t).duration=e}}var ah=qo.prototype.constructor;function oh(t){return function(){this.style.removeProperty(t)}}var sh=0;function ch(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function lh(){return++sh}var uh=qo.prototype;ch.prototype={constructor:ch,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Ia(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s,c,l=r[o],u=l.length,f=a[o]=new Array(u),d=0;d<u;++d)(s=l[d])&&(c=t.call(s,s.__data__,d,l))&&("__data__"in s&&(c.__data__=s.__data__),f[d]=c,Rd(f[d],e,n,d,f,Yd(s,n)));return new ch(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=qa(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c,l=r[s],u=l.length,f=0;f<u;++f)if(c=l[f]){for(var d,h=t.call(c,c.__data__,f,l),p=Yd(c,n),_=0,g=h.length;_<g;++_)(d=h[_])&&Rd(d,e,n,_,h,p);a.push(h),o.push(c)}return new ch(a,o,e,n)},filter:function(t){"function"!=typeof t&&(t=Ua(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,c=r[i]=[],l=0;l<s;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&c.push(a);return new ch(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var c,l=e[s],u=n[s],f=l.length,d=o[s]=new Array(f),h=0;h<f;++h)(c=l[h]||u[h])&&(d[h]=c);for(;s<r;++s)o[s]=e[s];return new ch(o,this._parents,this._name,this._id)},selection:function(){return new ah(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=lh(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)if(o=s[l]){var u=Yd(o,e);Rd(o,t,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ch(r,this._parents,t,n)},call:uh.call,nodes:uh.nodes,node:uh.node,size:uh.size,empty:uh.empty,each:uh.each,on:function(t,e){var n=this._id;return arguments.length<2?Yd(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Bd:Id;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=La(t),r="transform"===n?Xc:Vd;return this.attrTween(t,"function"==typeof e?(n.local?Qd:Jd)(n,r,$d(this,"attr."+t,e)):null==e?(n.local?Wd:Gd)(n):(n.local?Zd:Xd)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=La(t);return this.tween(n,(r.local?Kd:th)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Wc:Vd;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=so(this,t),o=(this.style.removeProperty(t),so(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,oh(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=so(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=so(this,t)),o===c?null:o===r&&c===i?a:(i=c,a=e(r=o,s))}}(t,r,$d(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e,s="end."+o;return function(){var c=Id(this,t),l=c.on,u=null==c.value[o]?a||(a=oh(e)):void 0;l===n&&i===u||(r=(n=l).copy()).on(s,i=u),c.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,a=n+"";return function(){var o=so(this,t);return o===a?null:o===r?i:i=e(r=o,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,a,n)),r}return a._value=e,a}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}($d(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Yd(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?qd:Ud)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?eh:nh)(e,t)):Yd(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?rh:ih)(e,t)):Yd(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Id(this,t).ease=e}}(e,t)):Yd(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},c={value:function(){0==--i&&a()}};n.each((function(){var n=Id(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e}))}))}};var fh={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function dh(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return fh.time=xd(),fh;return n}function hh(t){throw new TypeError("Expected a value of type string but got a value of type "+typeof t)}function ph(t){return function(e){return"string"!=typeof e&&hh(e),(e=e.trim())?t(e):null}}qo.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>Dd&&n.state<Pd,n.state=Hd,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},qo.prototype.transition=function(t){var e,n;t instanceof ch?(e=t._id,t=t._name):(e=lh(),(n=fh).time=xd(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],c=s.length,l=0;l<c;++l)(o=s[l])&&Rd(o,t,e,l,s,n||dh(o,e));return new ch(r,this._parents,t,e)};var _h=new Date(1972,3,27,19,45,5),gh={"%b %d":[{regex:/^june\s(30|[12][0-9]|0?[1-9])$/i,toDate:function(t){return new Date(null,5,t.split(/\s/)[1])}},{regex:/^july\s(3[01]|[12][0-9]|0?[1-9])$/i,toDate:function(t){return new Date(null,6,t.split(/\s/)[1])}},{regex:/^sept\s(30|[12][0-9]|0?[1-9])$/i,toDate:function(t){return new Date(null,8,t.split(/\s/)[1])}}],"%d %b":[{regex:/^(0?[1-9]|[1-9][0-9])\sjune$/i,toDate:function(t){return new Date(null,5,t.split(/\s/)[0])}},{regex:/^(0?[1-9]|[1-9][0-9])\sjuly$/i,toDate:function(t){return new Date(null,6,t.split(/\s/)[0])}},{regex:/^(0?[1-9]|[1-9][0-9])\ssept$/i,toDate:function(t){return new Date(null,8,t.split(/\s/)[0])}}]};function bh(t){return function(e){var n=null;return t.forEach((function(t){e.match(t.regex)&&(n=t.toDate(e))})),n}}function mh(t,e){var n,r=Mu(t),i=ku(t);return n=ph("function"==typeof e?function(t){return e(t,null!==r(t))}:function(t){return null!==r(t)}),Object.freeze({test:n,parse:ph((function(e){return r(e)||(gh[t]?bh(gh[t])(e):null)})),format:function(t){return i(t)},type:"datetime",description:t,id:"datetime$"+t,example:i(_h)})}var yh=Object.freeze([mh("%Y-%m-%dT%H:%M:%S.%LZ"),mh("%d/%m/%Y",(function(t,e){if(!e)return!1;var n=t.split("/").map(parseFloat);return n[0]>0&&n[0]<=31&&n[1]>0&&n[1]<=12&&n[2]>=1e3})),mh("%d/%m/%y",(function(t,e){if(!e)return!1;var n=t.split("/").map(parseFloat);return n[0]>0&&n[0]<=31&&n[1]>0&&n[1]<=12&&!isNaN(n[2])})),mh("%m/%d/%Y",(function(t,e){if(!e)return!1;var n=t.split("/").map(parseFloat);return n[0]>0&&n[0]<=12&&n[1]>0&&n[1]<=31&&n[2]>=1e3})),mh("%m/%d/%y",(function(t,e){if(!e)return!1;var n=t.split("/").map(parseFloat);return n[0]>0&&n[0]<=12&&n[1]>0&&n[1]<=31&&!isNaN(n[2])})),mh("%Y/%m/%d",(function(t,e){if(!e)return!1;var n=t.split("/").map(parseFloat);return n[0]>=1e3&&n[1]>0&&n[1]<=12&&n[2]>0&&n[2]<=31})),mh("%d-%m-%Y",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=31&&n[1]>0&&n[1]<=12&&n[2]>=1e3})),mh("%d-%m-%y",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=31&&n[1]>0&&n[1]<=12&&!isNaN(n[2])})),mh("%m-%d-%Y",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=12&&n[1]>0&&n[1]<=31&&n[2]>=1e3})),mh("%m-%d-%y",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=12&&n[1]>0&&n[1]<=31&&!isNaN(n[2])})),mh("%Y-%m-%d",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>=1e3&&n[1]>0&&n[1]<=12&&n[2]>0&&n[2]<=31})),mh("%d %b %Y",(function(t,e){if(!e)return!1;var n=t.split(" ").map(parseFloat);return n[0]>0&&n[0]<=31&&n[2]>=1e3})),mh("%d %B %Y",(function(t,e){if(!e)return!1;var n=t.split(" ").map(parseFloat);return n[0]>0&&n[0]<=31&&n[2]>=1e3})),mh("%d %b %y"),mh("%d %B %y"),mh("%d-%b-%Y",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=31&&n[2]>=1e3})),mh("%d-%B-%Y",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=31&&n[2]>=1e3})),mh("%d-%b-%y"),mh("%d-%B-%y"),mh("%m/%Y",(function(t,e){if(!e)return!1;var n=t.split("/").map(parseFloat);return n[0]>0&&n[0]<=12&&n[1]>=1e3})),mh("%m/%y"),mh("%b %Y",(function(t,e){return!!e&&t.split(" ").map(parseFloat)[1]>=1e3})),mh("%B %Y",(function(t,e){return!!e&&t.split(" ").map(parseFloat)[1]>=1e3})),mh("%b %y"),mh("%B %y"),mh("%d %b",(function(t,e){return!!e||!!bh(gh["%d %b"])(t)})),mh("%d %B"),mh("%b %d",(function(t,e){return!!e||!!bh(gh["%b %d"])(t)})),mh("%B %d"),mh("%d-%m",(function(t,e){if(!e)return!1;var n=t.split("-").map(parseFloat);return n[0]>0&&n[0]<=31&&n[1]>0&&n[1]<=12})),mh("%m-%d"),mh("%d/%m"),mh("%m/%d"),mh("%Y",(function(t,e){if(!e)return!1;var n=parseFloat(t);return n>1499&&n<2200})),mh("%B"),mh("%b"),mh("%X"),mh("%I:%M %p"),mh("%H:%M"),mh("%H:%M:%S"),mh("%-I%p"),mh("Q%q %Y",(function(t,e){return!!e&&6===t.replace(/\s/g,"").length})),mh("%Y Q%q",(function(t,e){return!!e&&6===t.replace(/\s/g,"").length}))]);var vh={test:ph((function(t){return/^(\+|-)?\d{1,3}(,\d{3})*(\.\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())})),parse:ph((function(t){return parseFloat(t.replace(/,/g,""))})),description:"Comma thousand separator, point decimal mark",thousand_separator:",",decimal_mark:".",id:"number$comma_point",example:"12,235.56"},wh={test:ph((function(t){return/^(\+|-)?\d{1,3}(\s\d{3})*(\.\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())})),parse:ph((function(t){return parseFloat(t.replace(/\s/g,""))})),description:"Space thousand separator, point decimal mark",thousand_separator:" ",decimal_mark:".",id:"number$space_point",example:"12 235.56"},xh={test:ph((function(t){return/^(\+|-)?\d+(\.\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())})),parse:ph((function(t){return parseFloat(t)})),description:"No thousand separator, point decimal mark",thousand_separator:"",decimal_mark:".",id:"number$none_point",example:"12235.56"},kh={test:ph((function(t){return/^(\+|-)?\d{1,3}(\.\d{3})*(,\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())})),parse:ph((function(t){return parseFloat(t.replace(/\./g,"").replace(/,/,"."))})),description:"Point thousand separator, comma decimal mark",thousand_separator:".",decimal_mark:",",id:"number$point_comma",example:"12.235,56"},Mh={test:ph((function(t){return/^(\+|-)?\d{1,3}(\s\d{3})*(,\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())})),parse:ph((function(t){return parseFloat(t.replace(/\s/g,"").replace(/,/,"."))})),description:"Space thousand separator, comma decimal mark",thousand_separator:" ",decimal_mark:",",id:"number$space_comma",example:"12 235,56"},Sh={test:ph((function(t){return/^(\+|-)?\d+(,\d+)?((e|E)(\+|-)?\d+)?$/.test(t.trim())})),parse:ph((function(t){return parseFloat(t.replace(/,/,"."))})),description:"No thousand separator, comma decimal mark",thousand_separator:"",decimal_mark:",",id:"number$none_comma",example:"12235,56"},Ah=Object.freeze([vh,wh,kh,Mh,xh,Sh]);Ah.forEach((function(t){t.type="number",t.format=function(t){var e,n,r=kl({decimal:t.decimal_mark,thousands:t.thousand_separator,grouping:[3],currency:["",""]});return function(t,i){return i||(i=",.2f"),i!==n&&(n=i,e=r.format(n)),e(t)}}(t),Object.freeze(t)}));var Th,Ch=Object.freeze({test:function(t){return"string"==typeof t||hh(t)},parse:function(t){return"string"==typeof t?t:hh(t)},format:function(t){if("string"==typeof t)return t},type:"string",description:"Arbitrary string",id:"string$arbitrary_string"}),Eh=Object.freeze({datetime:yh,number:Ah}),Nh=Object.freeze(["datetime","number","string"]),Oh=Object.freeze({n_max:250,n_failing_values:0,failure_fraction:.05,sort:!0}),zh=Object.freeze(Object.keys(Oh));function Fh(t,e){return t.index-e.index}function Dh(t,e){return e.n_success-t.n_success||Fh(t,e)}function jh(t){return(""+t).trim()}function Lh(t){return void 0===t?function(t){return jh(t)}:"function"==typeof t?function(e,n){return jh(t(e,n))}:function(e){return jh(e[""+t])}}function Ph(t){t?Array.isArray(t)||(t=[t]):t=Nh;var e=t.reduce((function(t,e){var n=Eh[e];return n&&Array.prototype.push.apply(t,n),t}),[]),n=-1!==t.indexOf("string"),r=zh.reduce((function(t,e){return t[e]=Oh[e],t}),{}),i=function(t,i){i=Lh(i);var a=t.map(i).filter((function(t){return t}));if(!a.length)return n?[Ch]:[];var o=Math.min(r.n_max,a.length),s=Math.floor(o*r.failure_fraction),c=r.n_failing_values,l=r.sort?Dh:Fh,u=e.slice().reduce((function(t,e,n){for(var r=u=0,i=[],l=!1,u=0;u<o;u++){var f=a[u];if(!e.test(f)&&(++r>s?l=!0:-1===i.indexOf(f)&&(i.push(f),i.length>c&&(l=!0)),l))break}return l||t.push({interp:e,n_success:o-r,index:n}),t}),[]).sort(l).map((function(t){return t.interp}));return n&&u.push(Ch),u};return zh.forEach((function(t){var e;i[(e=t,e.replace(/_(\w)/g,(function(t,e){return e.toUpperCase()})))]=function(e){return void 0===e?r[t]:(r[t]=e,i)}})),i}Ph.DATETIME_IDS=Object.freeze(yh.map((function(t){return t.id}))),Ph.NUMBER_IDS=Object.freeze(Ah.map((function(t){return t.id}))),Ph.STRING_IDS=Object.freeze([Ch.id]),Ph.getInterpretation=(Th=yh.concat(Ah,Ch).reduce((function(t,e){return t[e.id]=e,t}),{}),function(t){return Th[t]}),Ph._createAccessorFunction=Lh;var Hh,Rh,Bh,Ih,Yh=Ph.getInterpretation,qh=Object.freeze({transform_labels:!1,transform:"multiply",multiply_divide_constant:1,exponentiate_constant:0,multiplier:1,prefix:"",n_dec:2,suffix:"",strip_zeros:!0,strip_separator:!0,negative_sign:"-$nk"});function Uh(t,e){var n=Yh(e);if(!n)throw new Error("format_id "+e+" not recognised");if("number"!==n.type)throw new Error("format_id "+e+"not a number format");var r=n.format,i=n.decimal_mark,a=n.thousand_separator,o=Math.trunc(t.n_dec),s=(a?",":"")+"."+o+"f",c=t.strip_zeros&&o>0?new RegExp("\\"+i+"?0+$"):null,l=t.strip_separator&&a,u=t.negative_sign,f=function(t){var e=1;return t.transform_labels&&(e="multiply"===t.transform?t.multiply_divide_constant:"divide"===t.transform?1/t.multiply_divide_constant:Math.pow(10,t.exponentiate_constant)),function(t){return t*e}}(t);return function(e){var n=o>=0?f(e):function(t,e){if(!(e=e>0?Math.floor(e):Math.ceil(e)))return Math.round(t);var n=Math.pow(10,Math.abs(e));return e>0?Math.round(t*n)/n:Math.round(t/n)*n}(f(e),o),i=n<0,d=Math.abs(n),h=l&&a&&d>=1e3&&d<1e4,p=r(d,s);return c&&(p=p.replace(c,"")),h&&(p=p.replace(a,"")),i&&"none"!==u?"-$nk"===u?"-"+t.prefix+p+t.suffix:"$-nk"===u?t.prefix+"-"+p+t.suffix:"($nk)"===u?"("+t.prefix+p+t.suffix+")":t.prefix+"("+p+")"+t.suffix:t.prefix+p+t.suffix}}function $h(t){return t}function Vh(t,e){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Gh(t,e){return(e=e||Object.keys(t)).reduce((function(e,n){return e[n]=t[n],e}),{})}var Wh=Object.freeze({compare:function(t,e){return t===e},assign:function(t){return t}}),Xh=Object.freeze({compare:function(t,e){return t==e},assign:Wh.assign}),Zh=Object.freeze({compare:function(t,e){return!(!t||t.length!==e.length)&&t.every((function(t,n){return t===e[n]}))},assign:function(t){return t.slice()}}),Jh=function(t){var e=t.slice();return Object.freeze({compare:function(t,n){return!!t&&e.every((function(e){return t[e]===n[e]}))},assign:function(t){return Gh(t,e)}})};function Qh(t){return Array.isArray(t)?Jh(t):"equality"===t?Xh:"array-contents"===t?Zh:Wh}function Kh(t,e){if("string"==typeof t&&(t=document.querySelector(t)),!t)return console.error("No valid target in createScreenshotSVG"),null;var n=t.getBoundingClientRect(),r=n.width,i=n.height,a=n.x,o=n.y,s=document.createElementNS("http://www.w3.org/2000/svg","svg");return s.id=e,s.classList.add("flourish-screenshot-svg-container"),s.style.left=a+"px",s.style.top=o+"px",s.style.width=r+"px",s.style.height=i+"px",s.style.position="absolute",t.appendChild(s),{addTextElements:function(e){if("string"==typeof e&&(e=t.querySelectorAll(e)),!e)return console.error("No valid els inside addTextElements"),null;for(var n=function(){var t=i[r],e=t.getBoundingClientRect(),n=e.x,a=e.y,o=e.width,c=document.createElementNS("http://www.w3.org/2000/svg","text"),l=window.getComputedStyle(t),u=l.color,f=l["font-family"],d=l["font-size"],h=l["font-weight"],p=l["line-height"],_=l["padding-left"],g=l["padding-top"],b=h+" "+d+" "+f,m=function(t,e,n,r){var i=[],a=0;if(null!==n&&n<=0)return i.widest_line=a,i;np.font=e;var o=np.measureText(t).width;if(o<=r)i.push(t),a=o;else{for(var s=t.trim().split(/\s+/g),c="",l=0;l<s.length;l++){var u=s[l],f=c+(c?" ":"")+u,d=np.measureText(f).width;if(!(d<=r)){if(!(i.length+1==n)&&c){i.push(c);var h=np.measureText(u).width;if(h<=r){c=u,a=Math.max(a,h);continue}}var p=1,_=c;do{_=c.substring(0,f.length-p)+"…",d=np.measureText(_).width}while(d>r&&++p<f.length);a=Math.max(a,d),c=_;break}c=f,a=Math.max(a,d)}i.push(c)}return i.widest_line=a,i}(t.innerText,b,null,Math.ceil(o)),y=isNaN(parseFloat(p))?1.2*parseFloat(d)+"px":p,v=window.getComputedStyle(t.closest("[style*='opacity']")||t).opacity;m.forEach((function(t,e){var r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.innerHTML=t,r.setAttribute("dy",0===e?parseFloat(g):y),r.setAttribute("dx",parseFloat(_)),r.setAttribute("x",n),r.setAttribute("opacity",v),c.appendChild(r)})),c.style.dominantBaseline="text-before-edge",c.setAttribute("x",n+"px"),c.setAttribute("y",a+"px"),c.setAttribute("font-family",f),c.setAttribute("font-size",d),c.setAttribute("font-weight",h),c.setAttribute("fill",u),s.appendChild(c)},r=0,i=e;r<i.length;r+=1)n();return this},addCircleElements:function(e){if("string"==typeof e&&(e=t.querySelectorAll(e)),!e)return console.error("No valid els inside addCircleElements"),null;for(var n=0,r=e;n<r.length;n+=1){var i=r[n],a=document.createElementNS("http://www.w3.org/2000/svg","circle"),o=i.getBoundingClientRect(),c=o.x,l=o.y,u=o.width,f=window.getComputedStyle(i)["background-color"],d=window.getComputedStyle(i.closest("[style*='opacity']")||i).opacity,h=u/2;a.setAttribute("cx",c+h+"px"),a.setAttribute("cy",l+h+"px"),a.setAttribute("r",h+"px"),a.setAttribute("opacity",d),a.setAttribute("fill",f),"rgba(0, 0, 0, 0)"===f&&a.setAttribute("stroke","#CCC"),s.appendChild(a)}return this},addGradient:function(e,n,r){if("string"==typeof e&&(e=t.querySelector(e)),!e)return console.error("No valid els inside addCircleElements"),null;for(var i=document.createElementNS("http://www.w3.org/2000/svg","g"),a=e.getBoundingClientRect(),o=a.x,c=a.y,l=a.width,u=a.height,f=r.max,d=r.min,h=f-d,p=0;p<=l;p++){var _=document.createElementNS("http://www.w3.org/2000/svg","line");_.setAttribute("stroke",n(d+p*h/l)),_.setAttribute("x1",p+o),_.setAttribute("y1",c),_.setAttribute("x2",p+o),_.setAttribute("y2",u+c),i.appendChild(_)}return s.appendChild(i),this},remove:function(){s.remove()}}}var tp,ep,np=document.createElement("canvas").getContext("2d");var rp=function(t){var e=Vh(t=t.slice(),!0),n=Vh(t,void 0),r=Vh(t,Qh("strict-equality")),i=function(t,i){if(e[t]){var a=n[t],o=r[t];return!o.compare(a,i)&&(n[t]=o.assign(i),!0)}},a=function(e,n){if("string"==typeof e)return i(e,n);var r=0;return Array.isArray(e)?e.forEach((function(e,n){i(t[n],e)&&r++})):Object.keys(e).forEach((function(t){i(t,e[t])&&r++})),!!r};return a.mode=function(t,n){return void 0===t?r[t]:(e[t]&&(r[t]=Qh(n)),a)},a.stored=function(t){return"string"==typeof t?n[t]:Gh(n)},a}(["data","blank_cells","legend_filter"]).mode("legend_filter","array-contents");var ip=Object.freeze({categorical_type:"palette",categorical_palette:["#4328E7","#9654E5","#FF6283","#FF8800","#FFC502","#007D8E","#1AA7EE","#29DAE4","#88E99A","#019C00","#C11F1F","#730000"],categorical_extend:!0,categorical_custom_palette:"",numeric_type:"sequential",sequential_palette:"Blues",sequential_custom_min:"#F7F7F7",sequential_custom_max:"#FF6283",sequential_color_space:"rgb",sequential_reverse:!1,sequential_custom_domain:!1,sequential_domain_min:0,sequential_domain_max:1,diverging_palette:"RdBu",diverging_custom_min:"#1AA7EE",diverging_custom_mid:"#F7F7F7",diverging_custom_max:"#FF6283",diverging_color_space:"rgb",diverging_reverse:!1,diverging_custom_domain:!1,diverging_domain_min:0,diverging_domain_mid:.5,diverging_domain_max:1,binning:!1,bin_count:4,bin_mode:"fixed",bin_thresholds:""}),ap=null,op=360/((1+Math.sqrt(5))/2),sp="#FF0000";function cp(t,e,n){return function(r,i){Array.isArray(r)||(r=r?[r]:[sp]),i=void 0!==i?i:op;var a=r.map((function(e){return t(e)})).filter((function(t){return!isNaN(t[e])&&!isNaN(t[n])}));a.length||(a=[t(sp)]);var o,s=a.length,c=a.reduce((function(t,n){return t+n[e]}),0)/s,l=a.reduce((function(t,e){return t+e[n]}),0)/s,u=s;do{o=a[--u].h}while(isNaN(o)&&u>0);var f=0;return function(){var e=++f*i;return Fs(t((o+e)%360,c,l)).hex()}}}var lp={hcl:cp(lc,"c","l"),hsl:cp(Us,"s","l")};function up(t){for(var e=t.length/6|0,n=new Array(e),r=0;r<e;)n[r]="#"+t.slice(6*r,6*++r);return n}function fp(t){return Ec(t[t.length-1])}var dp=fp(new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(up)),hp=fp(new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(up)),pp=fp(new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(up)),_p=fp(new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(up)),gp=fp(new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(up)),bp=fp(new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(up)),mp=fp(new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(up)),yp=fp(new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(up)),vp=fp(new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(up)),wp=fp(new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(up)),xp=fp(new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(up)),kp=fp(new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(up)),Mp=fp(new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(up)),Sp=fp(new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(up)),Ap=fp(new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(up)),Tp=fp(new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(up)),Cp=fp(new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(up)),Ep=fp(new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(up)),Np=fp(new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(up)),Op=fp(new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(up)),zp=fp(new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(up)),Fp=fp(new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(up)),Dp=fp(new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(up)),jp=fp(new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(up)),Lp=fp(new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(up)),Pp=fp(new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(up)),Hp=fp(new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(up)),Rp=tl(vc(300,.5,0),vc(-240,.5,1)),Bp=tl(vc(-100,.75,.35),vc(80,1.5,.8)),Ip=tl(vc(260,.75,.35),vc(80,1.5,.8));function Yp(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}vc();var qp=Yp(up("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Up=Yp(up("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),$p=Yp(up("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Vp=Yp(up("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Gp(t,e){return t-e}function Wp(t,e){var n=e[0],r=e[e.length-1],i=Ol().domain([n,r]),a=Math.floor(t.bin_count);return i.range(Jo(a)),i.thresholds()}function Xp(t,e,n){var r;return r="fixed"==t.bin_mode?Wp(t,e):"quantile"==t.bin_mode?function(t,e,n){var r=Nl().domain(n),i=Math.floor(t.bin_count);return r.range(Jo(i)),r.quantiles()}(t,0,n):function(t){return t.bin_thresholds.split(";").map(parseFloat).filter((function(t){return!isNaN(t)&&null!==t})).sort(Gp)}(t),r}function Zp(t,e,n,r,i){for(var a=1+e;a<=t+e;a++)i.push(r(n(a)))}function Jp(t,e,n){var r=e.length,i=El(),a=[];if(1===r)a.push(n(.5));else if(2===t.length)i.domain([1,r]).range([0,1]),Zp(r,0,i,n,a);else if(2===r)a.push(n(0)),a.push(n(1));else{var o,s,c=t[1],l=function(t,e){var n;return t.forEach((function(t,r){Math.abs(t-e)<.001&&(n=r)})),n}(e,c);l?(o=l,s=r-l-1,i.domain([1,o+1]).range([0,.5]),Zp(o,0,i,n,a),a.push(n(.5)),i.domain([1,s+1]).range([.5,1]),Zp(s,1,i,n,a)):(o=function(t,e){var n=0;return t.forEach((function(t){t<e&&n++})),n}(e,c),s=r-o,i.domain([1,o+1]).range([0,.5]),Zp(o,0,i,n,a),i.domain([1,s+1]).range([.5,1]),Zp(s,1,i,n,a))}return a}function Qp(t,e,n,r){var i,a=Xp(t,e,n),o=function(t,e,n){var r=[];if(0===e.length)return[.5*(t+n)];r.push(.5*(t+e[0]));for(var i=0;i<e.length-1;i++)r.push(.5*(e[i]+e[i+1]));return r.push(.5*(n+e[e.length-1])),r}(e[0],a,e[e.length-1]),s=Jp(e,o,r);(i="quantile"==t.bin_mode?Nl().domain(n):zl().domain(a)).range(s);var c=function(t){return isNaN(t)||null===t?null:i(t)};return c.domain=Object.freeze(e),c.thresholds=Object.freeze(a),c.centers=Object.freeze(o),c}function Kp(t){var e=Array.isArray(t)?function(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=t[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=i=n;++o<a;)null!=(n=e(t[o],o,t))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}(t):[0,1];return e}var t_=Object.freeze(["#efeca4","#e9e28f","#dccf64","#e3b23c","#e49547","#e37746","#dc5b36","#cb4144","#bb2244","#972545","#6a2c4f"]),e_=Object.freeze({Blues:Fp,BuGn:wp,BuPu:xp,Carrots:Ec(t_),Cool:Ip,CubehelixDefault:Rp,GnBu:kp,Greens:Dp,Greys:jp,Inferno:$p,Magma:Up,Oranges:Hp,OrRd:Mp,Plasma:Vp,PuBu:Ap,PuBuGn:Sp,PuRd:Tp,Purples:Lp,RdPu:Cp,Reds:Pp,Viridis:qp,Warm:Bp,YlGn:Np,YlGnBu:Ep,YlOrBr:Op,YlOrRd:zp}),n_={hcl:Qc,hsl:Zc,lab:Jc,rgb:Tc};function r_(t,e){var n=t.sequential_custom_domain?[t.sequential_domain_min,t.sequential_domain_max]:Kp(e),r=function(e){var n=e_[t.sequential_palette]||function(t){var e=t.sequential_color_space,n=t.sequential_custom_min,r=t.sequential_custom_max;return n_[e](n,r)}(t);return t.sequential_reverse?n(1-e):n(e)};if(t.binning)return Qp(t,n,e,r);var i=Uf(r).domain(n),a=function(t){return isNaN(t)||null===t?null:i(t)};return a.domain=Object.freeze(n),a}var i_,a_,o_,s_,c_,l_=Object.freeze({BrBG:dp,PiYG:pp,PRGn:hp,PuOr:_p,RdBu:gp,RdGy:bp,RdYlBu:mp,RdYlGn:yp,Spectral:vp}),u_={hcl:Qc,hsl:Zc,lab:Jc,rgb:Tc};function f_(t){var e=t.diverging_color_space,n=t.diverging_custom_min,r=t.diverging_custom_mid,i=t.diverging_custom_max;return function(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}(u_[e],[n,r,i])}function d_(t){var e=null;for(var n in ip)void 0===t[n]&&(t[n]=ip[n]);var r=ap,i=function(t){return e&&e(t)||r};return{getColor:i,updateColorScale:function(n){return"number"!=typeof n[0]?e=function(t,e){var n={},r=fs(e).values(),i=t.categorical_palette,a=i.length;if(t.categorical_extend){var o=ip.rotation_angle,s=lp.hcl(i,o);r.forEach((function(t,e){n[t]=e<a?i[e]:s()}))}else r.forEach((function(t,e){n[t]=i[e%a]}));t.categorical_custom_palette.split("\n").filter((function(t){return t})).forEach((function(t){var e=t.lastIndexOf(":");if(-1!==e){var r=t.slice(0,e).trim(),i=t.slice(e+1).trim();r&&i&&(n[r]=i)}}));var c=function(t){return n[t]};return c.domain=r.slice(),c.colors=r.map((function(t){return n[t]})),c.items=r.map((function(t){return{label:t,color:n[t]}})),c}(t,n):"sequential"===t.numeric_type?e=r_(t,n):"diverging"===t.numeric_type&&(e=function(t,e){var n=Kp(e),r=n[0]<0&&n[1]>0?0:(n[0]+n[1])/2,i=[n[0],r,n[1]];t.diverging_custom_domain&&(i=[t.diverging_domain_min,t.diverging_domain_mid,t.diverging_domain_max]);var a=function(e){var n=l_[t.diverging_palette]||f_(t);return t.diverging_reverse?n(1-e):n(e)};if(t.binning)return Qp(t,i,e,a);var o=$f(a).domain(i),s=function(t){return isNaN(t)||null===t?null:o(t)};return s.domain=Object.freeze(i),s.midpoint=t.diverging_custom_domain?t.diverging_domain_mid:r,s}(t,n)),i.thresholds=e.thresholds,i.centers=e.centers,i.midpoint=e.midpoint,i.domain=e.domain,i.colors=e.colors,i.items=e.items,this},fallback:function(t){return void 0===t?r:(r="default"===t?ap:t,this)}}}function h_(){c_=[],o_="category"==Fa.color_mode?function(){for(var t={},e=[],n=0;n<tp.length;n++){var r=tp[n].category;t[r]||(t[r]=!0,e.push(r))}return e}():[],s_="bar"==Fa.color_mode?function(){for(var t=[],e=0;e<tp.length;e++){var n=tp[e].label;t.push(n)}return t}():[];var t="category"==Fa.color_mode?o_:s_;i_.updateColorScale(t),a_=function(t){var e="category"==Fa.color_mode?"category":"label",n="string"==typeof t?t:t[e];return i_.getColor(n)}}function p_(){"single"==Fa.color_mode?function(){o_=[],s_=[],c_=[];var t={};Fa.color_single_overrides.split("\n").filter((function(t){return t.trim()})).forEach((function(e){var n=e.lastIndexOf(":");if(-1!==n){var r=e.slice(0,n).trim(),i=e.slice(n+1).trim();r&&i&&void 0===t[r]&&(t[r]=i,c_.push(r))}})),a_=function(e){var n="string"==typeof e?e:e.label;return void 0!==t[n]?t[n]:Fa.color_single}}():h_()}function __(){return this.declarations=[],this}function g_(t){return this.selector=t,this.styles=[],this}__.prototype.select=function(t){if(!t)return this;var e=new g_(t);return e.parent=this,this.addDeclaration(e),e},__.prototype.addDeclaration=function(t){return this.declarations.push(t),this},__.prototype.print=function(){var t="";return this.declarations.forEach((function(e){t+=e.selector+" {\n",e.styles.forEach((function(e){t+="\t"+e[0]+": "+e[1]+";\n"})),t+="}\n\n"})),t},__.prototype.clear=function(){return this.declarations=[],this},g_.prototype.style=function(t,e){var n="function"==typeof value_?e():e;return""!==n&&null!=n&&this.styles.push([t,n]),this},g_.prototype.select=function(t){return this.parent.select(this.selector+" "+t)};var b_="0.2em";function m_(t){return t*parseFloat(getComputedStyle(document.documentElement).fontSize)}var y_=0,v_=Object.freeze({show_legend:!0,title_mode:"auto",title:"",max_width:25,swatch_width:.75,swatch_height:1,swatch_radius:3,legend_items_padding:.5,icon_height:1,icon_color:"#777777",icon_fill_opacity:1,icon_stroke_opacity:1,order_override:"",orientation:"horizontal"});function w_(t){for(var e in this._state=t,v_)void 0===this._state[e]&&(this._state[e]=v_[e]);return this._colorFunction=void 0,this._formatFunction=void 0,this._legend_items=[],this._filtered_items=[],this._eventListeners=[],this._id="fl-legend-discrete-color-"+y_,this._visible=!0,this._auto_title="",this._container=Uo(document.createElement("div")).attr("class","fl-legend-container").attr("id",this._id),this._container.append("p").attr("class","fl-legend-title"),y_++,this}w_.prototype.appendTo=function(t){if(t.appendChild(this._container.node()),!document.querySelector("#legend-styles")){var e=document.createElement("style"),n=new __;n.select(".fl-legend-container.interactive .fl-legend-item:hover").style("opacity",.75).style("cursor","pointer"),e.id="legend-styles",e.type="text/css",e.innerHTML=n.print(),document.head.appendChild(e)}return this},w_.prototype.format=function(t){return this._formatFunction=t,this},w_.prototype.getContainer=function(){return this._container},w_.prototype.visible=function(t){return void 0===t?this._visible:(this._visible=t,this)},w_.prototype.autoTitle=function(t){return void 0===t?this._auto_title:(this._auto_title=t,this)},w_.prototype._updateTitle=function(){var t=this,e="auto"==t._state.title_mode?t.autoTitle():t._state.title;this._container.select(".fl-legend-title").text(e).style("display",(function(){return e.trim()?void 0===t._state.orientation||"horizontal"==t._state.orientation?"inline-block":"block":"none"})).style("padding-inline-start",0).style("padding-inline-end",b_)},w_.prototype.data=function(t,e){return this._colorFunction=e,t||e?(e?Array.isArray(t)?this._legend_items=t.slice().map((function(t,n){var r="object"==typeof t?t.label||"":t;return r?{label:r,color:e(r),index:n}:null})).filter((function(t){return null!==t})):this._legend_items=[]:this._legend_items=Array.isArray(t)?t.slice():[],this):this._legend_items.slice()},w_.prototype.filtered=function(t){return t?(this._filtered_items=Array.isArray(t)?t.slice():[],this):this._filtered_items.slice()},w_.prototype.on=function(t,e){return this._container?(e&&this._eventListeners.indexOf(t)<0?this._eventListeners.push(t):e||this._eventListeners.splice(this._eventListeners.indexOf[t],1),this._container.classed("interactive",this._eventListeners.length>0),e?this._container.on(t,(function(){var t=Fo.target,n=t.parentNode,r=t.classList.contains("fl-legend-item")?t:n.classList.contains("fl-legend-item")?n:null;if(r){var i=Uo(r).datum();e.call(r,i,i.index)}})):this._container.on(t,null),this):this},w_.prototype.update=function(){var t=this._state.show_legend&&this._visible&&this._legend_items.length>0;return this._container.style("display",t?"":"none"),t?(this._updateTitle(),this._updateLegend(),this):this},w_.prototype._updateLegend=function(){var t,e=this,n=this._formatFunction;this._container.style("max-width",m_(this._state.max_width)+"px").style("display","inline-flex").style("flex-wrap","wrap").style("align-items","horizontal"==this._state.orientation?"center":"start").style("align-content","horizontal"==this._state.orientation?"center":null).style("flex-direction","horizontal"==this._state.orientation?null:"column"),t=this._state.order_override.trim()?function(t,e){for(var n={},r=e.split(/\s*\n\s*/),i=0;i<r.length;i++)n[r[i]]=i;for(var a=[],o=0;o<t.length;o++){var s=t[o],c=n[s.label];void 0!==c&&(a[c]=s)}return a.filter((function(t){return void 0!==t}))}(this._legend_items,this._state.order_override):this._legend_items;var r=this._container.selectAll(".fl-legend-item").data(t),i=r.enter().append("div").attr("class","fl-legend-item");i.append("div").attr("class","fl-legend-swatch"),i.append("svg").attr("class","fl-legend-icon fl-ignore-svg-download").append("path"),i.append("p").attr("class","fl-legend-label");var a=r.merge(i);return a.style("display","horizontal"==this._state.orientation?"inline-flex":"flex").style("flex-direction",(function(t){return t.reverse?"row-reverse":"row"})).style("opacity",(function(t){return e._filtered_items.indexOf(t.label)>-1?.2:""})).style("align-items","center").style("padding-inline-end","horizontal"==this._state.orientation?this._state.legend_items_padding+"rem":0).style("padding-inline-start",0),a.select(".fl-legend-swatch").style("height",this._state.swatch_height+"rem").style("width",this._state.swatch_width+"rem").style("border-radius",this._state.swatch_radius+"px").style("background-color",(function(t){return t.color})).style("display",(function(t){return t.icon?"none":null})),a.select(".fl-legend-icon").attr("height",Math.ceil(m_(this._state.icon_height))).attr("width",(function(t){if(!t.icon)return 0;var n=t.icon.width,r=t.icon.height,i=t.outline?r*t.stroke_thickness:0,a=(n+=i)/(r+=i),o=m_(e._state.icon_height*a);return Math.ceil(o)})).style("margin-right",.25*this._state.text_size+"rem").style("display",(function(t){return t.icon?"inline-block":"none"})).select("path").attr("d",(function(t){return t.icon?t.icon.path_string:null})).attr("transform",(function(t){if(!t.icon)return null;var n=t.icon.height,r=t.outline?n*t.stroke_thickness:0;n+=r;var i="scale("+m_(e._state.icon_height)/n+")";return i+="translate("+.5*r+","+.5*r+")"})).style("fill",(function(t){return t.outline?"none":t.fill||t.color||e._state.icon_color})).style("fill-opacity",(function(t){return t.outline?0:t.fill_opacity||e._state.icon_fill_opacity})).style("stroke",(function(t){return t.outline||t.stroke?t.stroke||t.color||e._state.icon_color:"none"})).style("stroke-width",(function(t){if(!t.outline&&!t.stroke_width)return 0;var e=t.icon.height*t.stroke_thickness;return t.stroke_width||e})).style("stroke-opacity",(function(t){return t.outline||t.stroke_opacity?t.stroke_opacity||e.state.icon_stroke_opacity:0})),a.select(".fl-legend-label").text((function(t){return n?n(t.label):t.label})).style("margin",0).style("user-select","none").style("padding-inline-end",0).style("padding-inline-start",b_),r.exit().remove(),this._legend_item_els=a,this},w_.prototype.prepareScreenshotSVG=function(){this._state.show_legend&&this._visible&&this._legend_items.length&&Kh("#fl-layout-wrapper",this._id+"-svg-screenshot-container").addTextElements(".fl-legend-title").addCircleElements(".fl-legend-swatch").addTextElements(".fl-legend-label")},w_.prototype.clearScreenshotSVG=function(){var t=document.getElementById(this._id+"-svg-screenshot-container");t&&t.remove()},Object.freeze({show_legend:!0,title_mode:"auto",title:"",color_band_width:8,color_band_height:1,color_band_radius:3,binned_label_mode:"thresholds",binned_label_custom:"",legend_min:null,legend_max:null,additional_min_label:"",additional_max_label:""}),Object.freeze({show_legend:!0,title_mode:"auto",title:"",clip_height:1,small_symbol_size:.5,shape_fill:"#eeeeee",shape_stroke:"#555555"});var x_,k_,M_,S_,A_,T_,C_=Object.freeze({alignment:"start",orientation:"horizontal",text_color:null,title_weight:"bold",text_weight:"normal",text_size:1});function E_(t){for(var e in this._state=t,C_)void 0===this._state[e]&&(this._state[e]=C_[e]);return this}E_.prototype.appendTo=function(t){return this._container=Uo(t).append("div").node(),this},E_.prototype.add=function(t){this._legends=Array.isArray(t)?t:[t];var e=this;return this._legends.forEach((function(t){t&&"function"==typeof t.appendTo?t.appendTo(e._container):console.warn("Please pass in valid legend instances into .add()")})),this},E_.prototype.update=function(){var t=window.template||void 0,e=t?t.state.layout:void 0;k_=this._state.text_color||t&&e&&e.font_color||"#333333",M_=e?e.body_font.name:window.getComputedStyle(document.body).fontFamily,x_=this._state.text_size,S_=this._state.text_weight;var n={family:M_,weight:S_,size:x_,color:k_};this._legends.forEach((function(t){t&&"function"==typeof t.update&&t.update(n)}));var r="horizontal"===this._state.orientation,i=this._state.alignment,a="center"==i?i:"flex-"+i;return Uo(this._container).style("justify-content",r?a:null).style("align-items",r?null:a).style("display","flex").style("flex-direction",r?"row":"column"),Uo(this._container).selectAll(".fl-legend-container").style("padding-inline-end",(function(){return r?"0.5rem":0})).style("padding-bottom",(function(){return r?0:"0.25rem"})).style("justify-content",a),Uo(this._container).selectAll(".fl-legend-title").style("color",this._state.text_color).style("font-weight",this._state.title_weight).style("font-size",x_+"rem").style("margin-right",.25*x_+"rem").style("line-height","1.25em").style("margin-top",0).style("margin-bottom",0).style("text-align",i),Uo(this._container).selectAll(".fl-legend-item").style("display","inline-flex").style("text-align",i),Uo(this._container).selectAll(".fl-legend-label").style("color",this._state.text_color).style("font-weight",this._state.text_weight).style("font-size",x_+"rem"),Uo(this._container).selectAll(".label").style("color",this._state.text_color).style("font-weight",this._state.text_weight).style("font-size",x_+"rem"),this};var N_,O_,z_,F_,D_="A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",j_="fl-spanner",L_=j_+"-";function P_(t){("string"==typeof t||t instanceof HTMLElement)&&(t=Uo(t));var e={data:[],element:null,ignore_case:!0,text:function(t){return t},class:j_},n=function(t,n){var r=e.text(t,n);if(!r||"string"!=typeof r)return null;var i=r.trim();return i?{original:r,trimmed:i,length:i.length,d:t,i:n}:null},r=function(){var r=t.node(),i=t.text(),a=e.element;return a||(a=r instanceof SVGElement||"svg"===r.nodeName.toLowerCase()?"tspan":"span"),e.data.map(n).filter((function(t){return t})).sort((function(t,e){return e.length-t.length||t.i-e.i})).forEach((function(t){var n=function(t,n){var r=n.trimmed.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i="<"+t+".*?<\\/"+t+">|(?:(^|[^"+D_+"])("+r+")($|[^"+D_+"]))",a=e.ignore_case?"gi":"g";return new RegExp(i,a)}(a,t);i=i.replace(n,(function(e,n,r,i){return r?n+function(t,e,n){return"<"+t+" class='"+L_+n+"'>"+e+"</"+t+">"}(a,r,t.i)+i:e}))})),t.html(i),t.selectAll(a).each((function(){var t=e.data[this.getAttribute("class").slice(L_.length)];Uo(this).datum(t).attr("class",e.class)}))};return r.data=function(t){return void 0===t?e.data:(e.data=Array.isArray(t)?t:[t],r)},r.element=function(t){return void 0===t?e.element:(e.element=t,r)},r.ignoreCase=function(t){return void 0===t?e.ignore_case:(e.ignore_case=!!t,r)},r.text=function(t){return void 0===t?e.text:(e.text=t,r)},r.class=function(t){return void 0===t?e.class:(e.class=t,r)},r}function H_(t,e,n){"off"!==Fa.text_legend&&P_(t).data(e)().style("color",(function(t){return a_(t)})).style("opacity",(function(t){return-1!==Fa.legend_filter.indexOf(t)?.3:1})).style("font-weight",n).style("cursor","category"==Fa.color_mode?"pointer":null).on("click",(function(t){if("category"===Fa.color_mode){var e=Fa.legend_filter.indexOf(t);-1!==e?Fa.legend_filter.splice(e,1):Fa.legend_filter.length<o_.length-1&&Fa.legend_filter.push(t),Tv()}}))}function R_(){"category"==Fa.color_mode?N_=o_:"bar"==Fa.color_mode?N_=s_:"single"==Fa.color_mode&&(N_=c_),function(){if("off"!==Fa.text_legend){var t=N_,e=Fa.text_legend_bold?"bold":null;("auto"===Fa.text_legend||Fa.text_legend_title)&&H_(Uo("#fl-layout-header h1"),t,e),("auto"===Fa.text_legend||Fa.text_legend_subtitle)&&H_(Uo("#fl-layout-header h2"),t,e)}}(),function(){if("text_legend"==Fa.caption_mode){var t=[];("auto"===Fa.text_legend||Fa.text_legend_caption&&"custom"===Fa.text_legend)&&(t=N_),H_(Uo("#caption #text"),t,Fa.text_legend_bold?"bold":null)}}()}function B_(){document.body.querySelector(".font-samples").innerHTML=""}function I_(t){F_||(F_=t||["normal","bold"]);var e="";["mobile_big","tablet","desktop","big_screen"].forEach((function(t){var n="@media(min-width: "+gg["breakpoint_"+t]+"px) {\n",r="html { font-size:"+gg["font_size_"+t]+"%; }";e+=n+r+"\n}\n\n"}));var n="html { \n font-size:"+gg.font_size_mobile_small+"%; \n -webkit-font-smoothing: antialiased; \n -moz-osx-font-smoothing: auto; } \n\n\n";O_.innerHTML=n+e;var r=[gg.body_font,gg.title_font,gg.subtitle_font,gg.footer_font];r.forEach((function(t){if(t){for(var e=!1,n=document.head.querySelectorAll("link.layout-font"),r=0;r<n.length;r++){n[r].href==t.url&&(e=!0)}if(!e){var i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t.url),i.className="layout-font",document.head.appendChild(i),function(t){document.body.querySelector(".font-samples")||((z_=document.createElement("div")).className="font-samples",z_.style.visibility="hidden",z_.style.overflow="hidden",z_.style.height=0,document.body.appendChild(z_)),F_.forEach((function(e){var n=document.createElement("div");n.className="font-sample-el",n.innerText=t.name,n.style.fontFamily=t.name,n.style.fontWeight=e,z_.appendChild(n)}))}(t)}}}));for(var i=document.head.querySelectorAll("link.layout-font"),a=0;a<i.length;a++){var o=i[a],s=!1;r.forEach((function(t){t&&t.url==o.href&&(s=!0)})),s||o.parentElement.removeChild(o)}document.body.style.fontFamily=gg.body_font.name}var Y_,q_,U_,$_,V_,G_,W_,X_,Z_,J_,Q_,K_,tg,eg,ng,rg=Object.freeze({"stack-default":["header","controls","primary","footer"],"stack-2":["primary","header","controls","footer"],"stack-3":["header","primary","controls","footer"],"stack-4":["controls","primary","header","footer"]});function ig(t){return window.innerWidth!==Y_&&(Y_=window.innerWidth,q_=parseFloat(getComputedStyle(document.documentElement).fontSize)),t*q_}function ag(t){return"justify"==t?"":"left"==t?"start":"right"==t?"end":"center"==t?"center":void 0}function og(t){return 0!==t.indexOf("http://")&&0!==t.indexOf("https://")?"http://"+t:t}function sg(){var t="top"==gg.header_border||"top_and_bottom"==gg.header_border,e="bottom"==gg.header_border||"top_and_bottom"==gg.header_border;U_.style.textAlign=ag(gg.header_align),U_.style.margin=0,U_.style.borderTop=t?gg.header_border_width+"px "+gg.header_border_style+" "+gg.header_border_color:null,U_.style.borderBottom=e?gg.header_border_width+"px "+gg.header_border_style+" "+gg.header_border_color:null,U_.style.paddingTop=t?gg.header_border_space+"rem":"",U_.style.paddingBottom=e?gg.header_border_space+"rem":"",$_.innerHTML=gg.title?gg.title:"",$_.setAttribute("id","flourish-header-title"),$_.style.fontFamily=gg.title_font?gg.title_font.name:"inherit",$_.style.fontSize=("custom"!=gg.title_size?gg.title_size:gg.title_size_custom)+"rem",$_.style.lineHeight=gg.title_line_height,$_.style.fontWeight=gg.title_weight,$_.style.color=gg.title_color||gg.font_color,$_.style.margin=0,$_.style.paddingTop=gg.title?("custom"==gg.title_space_above?gg.title_space_above_custom:gg.title_space_above)+"rem":0,V_.innerHTML=gg.subtitle?gg.subtitle:"",V_.setAttribute("id","flourish-header-subtitle"),V_.style.fontFamily=gg.subtitle_font?gg.subtitle_font.name:"inherit",V_.style.fontSize=("custom"!=gg.subtitle_size?gg.subtitle_size:gg.subtitle_size_custom)+"rem",V_.style.lineHeight=gg.subtitle_line_height,V_.style.fontWeight=gg.subtitle_weight,V_.style.color=gg.subtitle_color||gg.font_color,V_.style.margin=0,V_.style.paddingTop=gg.subtitle?("custom"==gg.subtitle_space_above?gg.subtitle_space_above_custom:gg.subtitle_space_above)+"rem":0,G_.innerHTML=gg.header_text?gg.header_text:"",G_.setAttribute("id","flourish-header-text"),G_.style.fontSize=("custom"!=gg.header_text_size?gg.header_text_size:gg.header_text_size_custom)+"rem",G_.style.lineHeight=gg.header_text_line_height,G_.style.fontWeight=gg.header_text_weight,G_.style.margin=0,G_.style.color=gg.header_text_color||gg.font_color,G_.style.paddingTop=gg.header_text?("custom"==gg.header_text_space_above?gg.header_text_space_above_custom:gg.header_text_space_above)+"rem":0,W_.style.clear="both",X_.innerHTML="",gg.header_logo_enabled&&gg.header_logo_src&&((Z_=document.createElement("img")).className="flourish-header-logo",Z_.src=og(gg.header_logo_src),Z_.alt=gg.header_logo_alt,Z_.style.position="inside"==gg.header_logo_align?"":"fixed",Z_.style.height=gg.header_logo_height+"rem",Z_.style.top="outside"==gg.header_logo_align?0:"",Z_.style.left="outside"==gg.header_logo_align&&"left"==gg.header_logo_position_outside?0:"",Z_.style.right="outside"==gg.header_logo_align&&"right"==gg.header_logo_position_outside?0:"",Z_.style.marginTop=gg.header_logo_margin_top+"rem",Z_.style.marginBottom=gg.header_logo_margin_bottom+"rem",Z_.style.marginLeft=gg.header_logo_margin_left+"rem",Z_.style.marginRight=gg.header_logo_margin_right+"rem",Z_.style.float="top"==gg.header_logo_position_inside||"outside"==gg.header_logo_align?"":gg.header_logo_position_inside,Z_.style.width="auto",gg.header_logo_link_url?((J_=document.createElement("a")).target="_blank",J_.appendChild(Z_),X_.appendChild(J_),Z_.style.cursor="pointer",J_.href=og(gg.header_logo_link_url)):X_.appendChild(Z_))}var cg=!1;function lg(){var t;return(t=document.createElement("style")).type="text/css",t.innerHTML=".flourish-footer { margin: 0; } .flourish-footer p { margin: 0; display: inline; } .flourish-footer p:empty { height: 0; } .flourish-footer a { color: inherit; }",document.head.appendChild(t),(Q_=document.createElement("footer")).className="flourish-footer",(K_=document.createElement("div")).className="flourish-footer-text",K_.setAttribute("id","flourish-footer-text"),(tg=document.createElement("div")).className="flourish-footer-logo-container",Q_.appendChild(K_),Q_.appendChild(tg),Q_}function ug(){return gg.background_color_enabled&&!function(t){if(t){var e=Fs(t);return Math.round(299*e.r+587*e.g+114*e.b)/1e3>195}console.warn("No valid color",t)}(gg.background_color)}function fg(){var t=gg.footer_logo_src?gg.footer_logo_src:"";return gg.footer_logo_src_light&&ug()&&(t=gg.footer_logo_src_light),t}function dg(){return gg.footer_logo_enabled&&fg()}function hg(){var t=[{name:gg.source_name,url:gg.source_url},{name:gg.multiple_sources?gg.source_name_2:"",url:gg.multiple_sources?gg.source_url_2:""},{name:gg.multiple_sources?gg.source_name_3:"",url:gg.multiple_sources?gg.source_url_3:""}].filter((function(t){return t.name||t.url}));cg=t.length>0||gg.footer_note||gg.footer_note_secondary||dg();var e,n="top"==gg.footer_border||"top_and_bottom"==gg.footer_border,r="bottom"==gg.footer_border||"top_and_bottom"==gg.footer_border;Q_.style.display="flex",Q_.style.height=cg?null:0,Q_.style.width="100%",Q_.style.paddingTop=n?gg.footer_border_space+"rem":"",Q_.style.paddingBottom=r?gg.footer_border_space+"rem":"",Q_.style.borderTop=n?gg.footer_border_width+"px "+gg.footer_border_style+" "+gg.footer_border_color:"",Q_.style.borderBottom=r?gg.footer_border_width+"px "+gg.footer_border_style+" "+gg.footer_border_color:"",Q_.style.fontFamily=gg.footer_font?gg.footer_font.name:"inherit",Q_.style.fontWeight=gg.footer_text_weight,Q_.style.justifyContent="justify"==(e=gg.footer_align)?"space-between":"left"==e?"flex-start":"right"==e?"flex-end":"center"==e?"center":void 0,Q_.style.fontSize=gg.footer_text_size+"rem",Q_.style.color=gg.footer_text_color||gg.font_color,Q_.style.alignItems=gg.footer_align_vertical;var i=document.createElement("span");t.forEach((function(t,e){var n=document.createElement("p");if(e>0&&(n.innerText=", "),t.url){var r=document.createElement("a");r.innerText=t.name||t.url,r.href=og(t.url),r.target="_blank",n.appendChild(r)}else n.innerText+=t.name||t.url;i.innerHTML+=n.innerHTML})),K_.style.order="left"==gg.footer_logo_order?2:"",K_.style.textAlign=ag(gg.footer_align);var a="<p>";a+=""!==i.innerHTML?gg.source_label+" "+i.innerHTML:"",a+=gg.footer_note?(""!==i.innerHTML?" • ":"")+gg.footer_note:"",a+="</p>",a+=gg.footer_note_secondary?"<br /><p>"+gg.footer_note_secondary+"</p>":"",K_.innerHTML=a,tg.innerHTML="",dg()&&((eg=document.createElement("img")).className="flourish-footer-logo",eg.src=og(fg()),eg.alt=gg.footer_logo_alt,eg.style.height=gg.footer_logo_height+"rem",eg.style.marginRight="left"==gg.footer_logo_order?gg.footer_logo_margin+"rem":"",eg.style.marginLeft="right"==gg.footer_logo_order?gg.footer_logo_margin+"rem":"",eg.style.verticalAlign=gg.footer_align_vertical,eg.style.display=dg()?"":"none",gg.footer_logo_link_url?((ng=document.createElement("a")).target="_blank",ng.appendChild(eg),tg.appendChild(ng),eg.style.cursor="pointer",ng.href=og(gg.footer_logo_link_url)):tg.appendChild(eg))}function pg(){I_(),sg(),hg(),document.body.style.backgroundColor=gg.background_color_enabled?gg.background_color:"transparent",document.body.style.backgroundImage=gg.background_image_enabled?"url("+gg.background_image_src+")":"",document.body.style.backgroundSize=gg.background_image_size,document.body.style.backgroundRepeat="no-repeat",document.body.style.backgroundPosition=gg.background_image_position;var t=Sg.wrapper.style;t.height="100vh",t.color=gg.font_color,t.maxWidth="wrapper"==gg.max_width_target?gg.max_width+"px":"",t.marginLeft="wrapper"==gg.max_width_target&&"left"!=gg.max_width_align?"auto":"",t.marginRight="wrapper"==gg.max_width_target&&"right"!=gg.max_width_align?"auto":"",t.padding=gg.margin_top+"rem "+gg.margin_right+"rem "+gg.margin_bottom+"rem "+gg.margin_left+"rem",t.borderTop=gg.border.enabled?gg.border.top.width+"px "+gg.border.top.style+" "+gg.border.top.color:"",t.borderRight=gg.border.enabled?gg.border.right.width+"px "+gg.border.right.style+" "+gg.border.right.color:"",t.borderBottom=gg.border.enabled?gg.border.bottom.width+"px "+gg.border.bottom.style+" "+gg.border.bottom.color:"",t.borderLeft=gg.border.enabled?gg.border.left.width+"px "+gg.border.left.style+" "+gg.border.left.color:"";var e=Sg.primary.outer.style,n=Sg.legend.outer.style,r=parseFloat(e.order)>parseFloat(n.order)?"above":"below";rg[gg.layout_order].forEach((function(t,e){Sg[t].outer.style.order=10*e})),e.flex="1 1 auto",e.height=null,qg(r),Sg.primary.outer.style.maxWidth="primary"==gg.max_width_target?gg.max_width+"px":"",Sg.primary.outer.style.marginLeft="primary"==gg.max_width_target&&"left"!=gg.max_width_align?"auto":"",Sg.primary.outer.style.marginRight="primary"==gg.max_width_target&&"right"!=gg.max_width_align?"auto":"";var i=gg.screenreader_hide_primary&&""!=gg.screenreader_text_primary;document.getElementById("fl-layout-primary-description").innerText=gg.screenreader_hide_primary?gg.screenreader_text_primary:"",i?Sg.primary.outer.setAttribute("aria-describedBy","fl-layout-primary-description"):Sg.primary.outer.removeAttribute("aria-describedBy"),gg.screenreader_hide_primary?Sg.primary.inner.setAttribute("aria-hidden",!0):Sg.primary.inner.removeAttribute("aria-hidden"),gg.screenreader_label?Eg().setAttribute("aria-label",gg.screenreader_label):Eg().removeAttribute("aria-label");var a=("custom"==gg.space_between_sections?gg.space_between_sections_custom:gg.space_between_sections)/2+"rem";Mg.map((function(t){var e=Sg[t],n=e.outer.style;return{name:t,height:Tg(e.inner),order:parseFloat(n.order),style:n}})).sort((function(t,e){return t.order-e.order})).filter((function(t){if(t.height)return!0;t.style.paddingBottom="",t.style.paddingTop=""})).forEach((function(t,e,n){t.style.paddingTop=e?a:"",t.style.paddingBottom=e<n.length-1?a:""})),document.body.setAttribute("dir",gg.read_direction),Sg.wrapper.setAttribute("dir",gg.read_direction),document.getElementById("fl-layout-wrapper-outer").setAttribute("dir","ltr")}var _g=Object.freeze({body_font:{name:"Source Sans Pro",url:"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700"},title_font:null,subtitle_font:null,footer_font:null,read_direction:"ltr",border:{enabled:!1,top:{width:1,color:"#dddddd",style:"solid"},right:{width:1,color:"#dddddd",style:"solid"},bottom:{width:1,color:"#dddddd",style:"solid"},left:{width:1,color:"#dddddd",style:"solid"}},layout_order:"stack-default",margin_top:.75,margin_right:.75,margin_bottom:.75,margin_left:.75,space_between_sections:1,space_between_sections_custom:1,background_color_enabled:!0,background_color:"#ffffff",background_image_enabled:!1,background_image_src:"",background_image_size:"cover",background_image_position:"center center",max_width:600,max_width_target:"none",max_width_align:"center",breakpoint_mobile_small:0,breakpoint_mobile_big:380,breakpoint_tablet:580,breakpoint_desktop:1080,breakpoint_big_screen:1280,font_color:"#333333",font_size_mobile_small:62.5,font_size_mobile_big:75,font_size_tablet:87.5,font_size_desktop:100,font_size_big_screen:120,header_align:"left",header_border:"none",header_border_width:1,header_border_color:"#dddddd",header_border_style:"solid",header_border_space:.5,header_logo_enabled:!1,header_logo_align:"inside",header_logo_src:"",header_logo_alt:"Header logo",header_logo_link_url:"",header_logo_height:3,header_logo_position_inside:"left",header_logo_position_outside:"left",header_logo_margin_top:.25,header_logo_margin_right:.5,header_logo_margin_bottom:0,header_logo_margin_left:0,title:"",title_size:1.6,title_size_custom:1.6,title_line_height:1.2,title_color:null,title_weight:"bold",title_space_above:0,title_space_above_custom:1.5,title_styling:!1,subtitle:"",subtitle_size:1.6,subtitle_size_custom:1.6,subtitle_line_height:1.2,subtitle_color:null,subtitle_weight:"normal",subtitle_space_above:0,subtitle_space_above_custom:1.5,subtitle_styling:!1,header_text:"",header_text_size:1.2,header_text_size_custom:1.2,header_text_line_height:1.2,header_text_color:null,header_text_weight:"normal",header_text_space_above:.5,header_text_space_above_custom:1.5,source_label:"Source: ",source_name:"",source_url:"",source_name_2:"",source_url_2:"",source_name_3:"",source_url_3:"",footer_note:"",footer_note_secondary:"",footer_text_size:1,footer_text_color:null,footer_styling:!1,footer_text_weight:"normal",footer_align:"justify",footer_align_vertical:"center",footer_border:"none",footer_border_width:1,footer_border_color:"#dddddd",footer_border_style:"solid",footer_border_space:.5,footer_logo_enabled:!1,footer_logo_src:"",footer_logo_src_light:"",footer_logo_alt:"Footer logo",footer_logo_link_url:"",footer_logo_height:1.5,footer_logo_margin:.25,footer_logo_order:"right",screenreader_hide_primary:!0,screenreader_text_primary:"",screenreader_label:""});var gg,bg="Your web browser does not support the features used by this content. Consider updating to a modern browser.";function mg(t,e,n){I_(n),t=function(t){return function(){return document.body.classList.add("fl-fonts-loaded"),t.apply(this,arguments)}}(t=t||window.template.update);var r=setTimeout(t,isNaN(e)?500:e),i=[];document.fonts&&document.fonts.ready.then((function(e){if(e.size){var n=Array.from(e.keys()).map((function(t){return yg(t)}));i=i.concat(n),clearTimeout(r),t(),B_()}document.fonts.addEventListener("loadingdone",(function(e){var n=!1;e.fontfaces.forEach((function(t){var e=yg(t);i.includes(e)||(i.push(e),n=!0)})),n&&(clearTimeout(r),t(),B_())}))}))}function yg(t){return[t.family,t.variant,t.weight,t.unicodeRange].join(" ")}var vg,wg,xg,kg,Mg=["header","controls","legend","primary","footer"],Sg={};function Ag(t){return t.getBoundingClientRect().width}function Tg(t){return t.getBoundingClientRect().height}function Cg(t,e){var n="fl-layout-"+t,r=document.createElement("section");r.className="fl-layout-container",r.id=n+"-container",r.style.width="100%",r.style.position="relative",r.style.order=e;var i=document.createElement("div");return i.className="fl-layout-inner",i.id=n,i.style.width="100%",i.style.position="relative","primary"==t&&(r.style.display="flex",function(t){var e=document.createElement("p");e.id="fl-layout-primary-description";var n=e.style;n.border="0",n.height="1px",n.width="1px",n.margin="-1px",n.overflow="hidden",n.padding="0",n.position="absolute",n.clip="rect(0 0 0 0)",t.appendChild(e)}(r)),"controls"!=t&&"legend"!=t||i.setAttribute("aria-hidden",!0),r.appendChild(i),Sg.wrapper.appendChild(r),{outer:r,inner:i}}function Eg(){return Sg.wrapper}function Ng(){return Sg.sidebar}function Og(t){return-1!==Mg.indexOf(t)?Sg[t].inner:null}function zg(t){return Sg[t]||void 0===t?Ag("wrapper"==t||void 0===t?Sg.wrapper:Sg[t].outer):null}function Fg(t){return Sg[t]||void 0===t?"wrapper"==t||void 0===t?Ag(Sg.wrapper)-Bg("horizontal")-Ig("horizontal"):Ag(Sg[t].inner):null}function Dg(t){return Sg[t]||void 0===t?Tg("wrapper"==t||void 0===t?Sg.wrapper:Sg[t].outer):null}function jg(t){return Sg[t]||void 0===t?"wrapper"==t||void 0===t?Tg(Sg.wrapper)-Bg("vertical")-Ig("vertical"):Tg(Sg[t].inner):null}function Lg(){return Tg(Sg.primary.outer)-Hg(Sg.primary.outer)}function Pg(){return Ag(Sg.primary.inner)}function Hg(t){return(parseFloat(getComputedStyle(t).paddingTop)||0)+(parseFloat(getComputedStyle(t).paddingBottom)||0)}function Rg(){var t=function(){if(Flourish.fixed_height)return window.innerHeight;var t=window.innerWidth;return t>999?650:t>599?575:400}()-Bg("vertical")-Ig("vertical");return t-["header","controls","legend","footer"].reduce((function(t,e){return t+Dg(e)}),0)-Hg(Sg.primary.outer)}function Bg(t){var e;return"left"==t?e=gg.margin_left:"right"==t?e=gg.margin_right:"top"==t?e=gg.margin_top:"bottom"==t?e=gg.margin_bottom:"horizontal"==t?e=gg.margin_left+gg.margin_right:"vertical"==t&&(e=gg.margin_top+gg.margin_bottom),ig(e)}function Ig(t){return gg.border.enabled?"vertical"==t?gg.border.top.width+gg.border.bottom.width:"horizontal"==t?gg.border.left.width+gg.border.right.width:null:0}function Yg(t){var e=Sg.primary;if(Flourish.fixed_height||void 0===Flourish.fixed_height)e.inner.style.height="";else{var n=null===t,r=n?Rg():t;r+Hg(Sg.primary.outer)!==parseFloat(e.outer.style.height)&&(Sg.wrapper.style.height="",e.outer.style.flex="",e.inner.style.height=r+"px",Flourish.setHeight(n?null:Dg()))}}function qg(t){var e=parseFloat(Sg.primary.outer.style.order);Sg.legend.outer.style.order=e+1*("below"===t.trim().toLowerCase()?1:-1)}function Ug(t){var e=vg.querySelector(".fl-layout-overlay-message");if(t){vg.style.display="block";var n="string"==typeof t?t:bg;e.innerHTML=n}else e.textContent="",vg.style.display="none"}function $g(){return vg}function Vg(){wg&&Gg(),(wg=Kh(this.getWrapper(),"fl-layout-svg-screenshot-container")).addTextElements("#fl-layout-header-container h1"),wg.addTextElements("#fl-layout-header-container h2"),wg.addTextElements("#fl-layout-header-container p"),wg.addTextElements("#fl-layout-footer .flourish-footer-text")}function Gg(){wg.remove(),wg=null}function Wg(t){for(var e in gg=t,_g)void 0===gg[e]&&(gg[e]=_g[e]);return(O_=document.createElement("style")).id="flourish-page-styles",O_.type="text/css",document.head.appendChild(O_),Sg.wrapper=function(){var t=document.createElement("div");t.id="fl-layout-wrapper-outer",t.style.display="flex";var e=document.createElement("main");e.id="fl-layout-wrapper",e.style.display="flex",e.style.flexGrow="1",e.style.flexDirection="column",e.style.boxSizing="border-box",e.style.overflow="hidden";var n=document.createElement("aside");return n.id="fl-layout-sidebar",n.style.position="relative",Sg.sidebar=n,t.appendChild(e),t.appendChild(n),document.body.appendChild(t),e}(),Mg.forEach((function(t,e){Sg[t]=Cg(t,e)})),Og("header").appendChild(function(){(U_=document.createElement("header")).className="flourish-header";var t=document.createElement("hgroup");return $_=document.createElement("h1"),V_=document.createElement("h2"),G_=document.createElement("p"),(W_=document.createElement("div")).className="clearfix",(X_=document.createElement("div")).className="flourish-header-logo-container",U_.appendChild(X_),U_.appendChild(t),t.appendChild($_),t.appendChild(V_),U_.appendChild(G_),U_.appendChild(W_),U_}()),Og("footer").appendChild(lg()),Sg.primary.outer.style.overflow="hidden",function(){var t=Sg.primary.outer;t.style.position="relative",(vg=document.createElement("div")).id="fl-layout-overlay";var e=vg.style;e.position="absolute",e.display="none",e.width="100%",e.height="100%",e.top=0,e.left=0,e.backgroundColor="rgb(200,200,200)",e.zIndex=999999,e.pointerEvents="none";var n=document.createElement("p");n.className="fl-layout-overlay-message",(e=n.style).color="#333333",e.fontSize="1.5rem",e.paddingLeft="15%",e.paddingRight="15%",e.width="100%",e.boxSizing="border-box",e.position="absolute",e.top="50%",e.transform="translate(0, -50%)",e.margin="0",e.textAlign="center",vg.appendChild(n),t.appendChild(vg)}(),{update:pg,getWrapper:Eg,getSidebar:Ng,getSection:Og,getOuterWidth:zg,getInnerWidth:Fg,getOuterHeight:Dg,getInnerHeight:jg,getPrimaryHeight:Lg,getPrimaryWidth:Pg,getDefaultPrimaryHeight:Rg,setHeight:Yg,setLegendPosition:qg,showOverlay:Ug,remToPx:ig,getOverlay:$g,awaitFonts:mg,prepareScreenshotSVG:Vg,clearScreenshotSVG:Gg}}function Xg(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Zg(t){var e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var a=r+i>>>1;n(t[a],e)<0?r=a+1:i=a}return r}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return Xg(t(e),n)}}(t)),{left:r,center:function(t,n,i,a){null==i&&(i=0),null==a&&(a=t.length);var o=r(t,n,i,a-1);return o>i&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var a=r+i>>>1;n(t[a],e)>0?i=a:r=a+1}return r}}}var Jg=Zg(Xg).right;Zg((function(t){return null===t?NaN:+t})).center;var Qg=Jg,Kg=Math.sqrt(50),tb=Math.sqrt(10),eb=Math.sqrt(2);function nb(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=Kg?10:a>=tb?5:a>=eb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Kg?10:a>=tb?5:a>=eb?2:1)}function rb(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=Kg?i*=10:a>=tb?i*=5:a>=eb&&(i*=2),e<t?-i:i}function ib(t,e){var n;if(void 0===e)for(var r=0,i=t;r<i.length;r+=1){var a=i[r];null!=a&&(n<a||void 0===n&&a>=a)&&(n=a)}else for(var o=-1,s=0,c=t;s<c.length;s+=1){var l=c[s];null!=(l=e(l,++o,t))&&(n<l||void 0===n&&l>=l)&&(n=l)}return n}function ab(t,e){var n;if(void 0===e)for(var r=0,i=t;r<i.length;r+=1){var a=i[r];null!=a&&(n>a||void 0===n&&a>=a)&&(n=a)}else for(var o=-1,s=0,c=t;s<c.length;s+=1){var l=c[s];null!=(l=e(l,++o,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}return n}function ob(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var sb=Symbol("implicit");function cb(){var t=new Map,e=[],n=[],r=sb;function i(i){var a=i+"",o=t.get(a);if(!o){if(r!==sb)return r;t.set(a,o=e.push(i))}return n[(o-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(var r=0,a=n;r<a.length;r+=1){var o=a[r],s=o+"";t.has(s)||t.set(s,e.push(o))}return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return cb(e,n).unknown(r)},ob.apply(i,arguments),i}function lb(t){return+t}var ub=[0,1];function fb(t){return t}function db(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function hb(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=db(i,r),a=n(o,a)):(r=db(r,i),a=n(a,o)),function(t){return a(r(t))}}function pb(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=db(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=Qg(t,e,1,r)-1;return a[n](i[n](e))}}function _b(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function gb(){var t,e,n,r,i,a,o=ub,s=ub,c=Hc,l=fb;function u(){var t,e,n,c=Math.min(o.length,s.length);return l!==fb&&(t=o[0],e=o[c-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?pb:hb,i=a=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(l(e)))}return f.invert=function(n){return l(e((a||(a=r(s,o.map(t),Fc)))(n)))},f.domain=function(t){return arguments.length?(o=Array.from(t,lb),u()):o.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),c=Rc,u()},f.clamp=function(t){return arguments.length?(l=!!t||fb,u()):l!==fb},f.interpolate=function(t){return arguments.length?(c=t,u()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,u()}}function bb(){return gb()(fb,fb)}function mb(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=nb(t,e,n))||!isFinite(o))return[];if(o>0){var c=Math.round(t/o),l=Math.round(e/o);for(c*o<t&&++c,l*o>e&&--l,a=new Array(i=l-c+1);++s<i;)a[s]=(c+s)*o}else{o=-o;var u=Math.round(t*o),f=Math.round(e*o);for(u/o<t&&++u,f/o>e&&--f,a=new Array(i=f-u+1);++s<i;)a[s]=(u+s)/o}return r&&a.reverse(),a}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return function(t,e,n,r){var i,a=rb(t,e,n);switch((r=hl(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Sl(a,o))||(r.precision=i),vl(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Al(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ml(a))||(r.precision=i-2*("%"===r.type))}return yl(r)}(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,a=e(),o=0,s=a.length-1,c=a[o],l=a[s],u=10;for(l<c&&(i=c,c=l,l=i,i=o,o=s,s=i);u-- >0;){if((i=nb(c,l,n))===r)return a[o]=c,a[s]=l,e(a);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function yb(){var t=bb();return t.copy=function(){return _b(t,yb())},ob.apply(t,arguments),mb(t)}var vb=new Date,wb=new Date;function xb(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return xb((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return vb.setTime(+e),wb.setTime(+r),t(vb),t(wb),Math.floor(n(vb,wb))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var kb=xb((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));kb.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?xb((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):kb:null};var Mb=kb;kb.range;var Sb=1e3,Ab=6e4,Tb=60*Ab,Cb=24*Tb,Eb=7*Cb,Nb=30*Cb,Ob=365*Cb,zb=xb((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Sb)}),(function(t,e){return(e-t)/Sb}),(function(t){return t.getUTCSeconds()})),Fb=zb;zb.range;var Db=xb((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sb)}),(function(t,e){t.setTime(+t+e*Ab)}),(function(t,e){return(e-t)/Ab}),(function(t){return t.getMinutes()})),jb=Db;Db.range;var Lb=xb((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Sb-t.getMinutes()*Ab)}),(function(t,e){t.setTime(+t+e*Tb)}),(function(t,e){return(e-t)/Tb}),(function(t){return t.getHours()})),Pb=Lb;Lb.range;var Hb=xb((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ab)/Cb}),(function(t){return t.getDate()-1})),Rb=Hb;function Bb(t){return xb((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ab)/Eb}))}Hb.range;var Ib=Bb(0),Yb=Bb(1),qb=Bb(2),Ub=Bb(3),$b=Bb(4),Vb=Bb(5),Gb=Bb(6);Ib.range,Yb.range,qb.range,Ub.range,$b.range,Vb.range,Gb.range;var Wb=xb((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Xb=Wb;Wb.range;var Zb=xb((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Zb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xb((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Jb=Zb;Zb.range;var Qb=function(t,e,n,r,i,a){var o=[[Fb,1,Sb],[Fb,5,5e3],[Fb,15,15e3],[Fb,30,3e4],[a,1,Ab],[a,5,5*Ab],[a,15,15*Ab],[a,30,30*Ab],[i,1,Tb],[i,3,3*Tb],[i,6,6*Tb],[i,12,12*Tb],[r,1,Cb],[r,2,2*Cb],[n,1,Eb],[e,1,Nb],[e,3,3*Nb],[t,1,Ob]];function s(e,n,r){var i=Math.abs(n-e)/r,a=Zg((function(t){return t[2]})).right(o,i);if(a===o.length)return t.every(rb(e/Ob,n/Ob,r));if(0===a)return Mb.every(Math.max(rb(e,n,r),1));var s=o[i/o[a-1][2]<o[a][2]/i?a-1:a],c=s[0],l=s[1];return c.every(l)}return[function(t,e,n){var r,i=e<t;i&&(t=(r=[e,t])[0],e=r[1]);var a=n&&"function"==typeof n.range?n:s(t,e,n),o=a?a.range(t,+e+1):[];return i?o.reverse():o},s]}(Jb,Xb,Ib,Rb,Pb,jb),Kb=Qb[0],tm=Qb[1];function em(t){return new Date(t)}function nm(t){return t instanceof Date?+t:+new Date(+t)}function rm(t,e,n,r,i,a,o,s,c,l){var u=bb(),f=u.invert,d=u.domain,h=l(".%L"),p=l(":%S"),_=l("%I:%M"),g=l("%I %p"),b=l("%a %d"),m=l("%b %d"),y=l("%B"),v=l("%Y");function w(t){return(c(t)<t?h:s(t)<t?p:o(t)<t?_:a(t)<t?g:r(t)<t?i(t)<t?b:m:n(t)<t?y:v)(t)}return u.invert=function(t){return new Date(f(t))},u.domain=function(t){return arguments.length?d(Array.from(t,nm)):d().map(em)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?w:l(e)},u.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(function(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}(n,t)):u},u.copy=function(){return _b(u,rm(t,e,n,r,i,a,o,s,c,l))},u}function im(){return ob.apply(rm(Kb,tm,Jb,Xb,Ib,Rb,Pb,jb,Fb,ku).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var am=Math.PI,om=2*am,sm=1e-6,cm=om-sm;function lm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function um(){return new lm}function fm(t){return function(){return t}}function dm(t){this._context=t}function hm(t){return new dm(t)}function pm(t){return t[0]}function _m(t){return t[1]}function gm(){var t=pm,e=_m,n=fm(!0),r=null,i=hm,a=null;function o(o){var s,c,l,u=o.length,f=!1;for(null==r&&(a=i(l=um())),s=0;s<=u;++s)!(s<u&&n(c=o[s],s,o))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(c,s,o),+e(c,s,o));if(l)return a=null,l+""||null}return o.x=function(e){return arguments.length?(t="function"==typeof e?e:fm(+e),o):t},o.y=function(t){return arguments.length?(e="function"==typeof t?t:fm(+t),o):e},o.defined=function(t){return arguments.length?(n="function"==typeof t?t:fm(!!t),o):n},o.curve=function(t){return arguments.length?(i=t,null!=r&&(a=i(r)),o):i},o.context=function(t){return arguments.length?(null==t?r=a=null:a=i(r=t),o):r},o}function bm(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function mm(t,e){this._context=t,this._k=(1-e)/6}lm.prototype=um.prototype={constructor:lm,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,c=r-e,l=a-t,u=o-e,f=l*l+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>sm)if(Math.abs(u*s-c*l)>sm&&i){var d=n-a,h=r-o,p=s*s+c*c,_=d*d+h*h,g=Math.sqrt(p),b=Math.sqrt(f),m=i*Math.tan((am-Math.acos((p+f-_)/(2*g*b)))/2),y=m/b,v=m/g;Math.abs(y-1)>sm&&(this._+="L"+(t+y*l)+","+(e+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>l*h)+","+(this._x1=t+v*s)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,l=e+s,u=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>sm||Math.abs(this._y1-l)>sm)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%om+om),f>cm?this._+="A"+n+","+n+",0,1,"+u+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):f>sm&&(this._+="A"+n+","+n+",0,"+ +(f>=am)+","+u+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},dm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},mm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:bm(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ym=function t(e){function n(t){return new mm(t,e)}return n.tension=function(e){return t(+e)},n}(0),vm=function(t,e){"string"==typeof e&&(n=e,n=String(n).toUpperCase(),e=function(t){return n===t.nodeName});var n;"function"!=typeof e&&(r=e,e=function(t){return r===t});var r;for(;t&&!e(t);)t=t.parentNode;return t||null};function wm(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var xm=wm;function km(t){return"function"==typeof t}function Mm(t){return"object"==typeof t&&null!==t}function Sm(t){return void 0===t}wm.EventEmitter=wm,wm.prototype._events=void 0,wm.prototype._maxListeners=void 0,wm.defaultMaxListeners=10,wm.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},wm.prototype.emit=function(t){var e,n,r,i,a,o;if(this._events||(this._events={}),"error"===t&&(!this._events.error||Mm(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var s=new Error('Uncaught, unspecified "error" event. ('+e+")");throw s.context=e,s}if(Sm(n=this._events[t]))return!1;if(km(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(Mm(n))for(i=Array.prototype.slice.call(arguments,1),r=(o=n.slice()).length,a=0;a<r;a++)o[a].apply(this,i);return!0},wm.prototype.addListener=function(t,e){var n;if(!km(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,km(e.listener)?e.listener:e),this._events[t]?Mm(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,Mm(this._events[t])&&!this._events[t].warned&&(n=Sm(this._maxListeners)?wm.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},wm.prototype.on=wm.prototype.addListener,wm.prototype.once=function(t,e){if(!km(e))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}return r.listener=e,this.on(t,r),this},wm.prototype.removeListener=function(t,e){var n,r,i,a;if(!km(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(n=this._events[t]).length,r=-1,n===e||km(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(Mm(n)){for(a=i;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},wm.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(km(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},wm.prototype.listeners=function(t){return this._events&&this._events[t]?km(this._events[t])?[this._events[t]]:this._events[t].slice():[]},wm.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(km(e))return 1;if(e)return e.length}return 0},wm.listenerCount=function(t,e){return t.listenerCount(e)};var Am=["touchstart","touchmove","touchend","touchcancel","mousedown","mousemove","mouseup"],Tm={left:0,top:0},Cm=function(t,e){e=e||{},t=t||window;var n=new xm;n.target=e.target||t;var r=null,i=e.filtered,a=Am;"string"==typeof e.type&&(a=Am.filter((function(t){return 0===t.indexOf(e.type)})));var o=a.map((function(t){var a=function(t){return t.replace(/^(touch|mouse)/,"").replace(/up$/,"end").replace(/down$/,"start")}(t);return{type:t,listener:function(o){var s=o;if(/^touch/.test(t)&&(/^touchend$/.test(t)&&!1!==e.preventSimulated&&o.preventDefault(),s=i?function(t,e){var i;r&&/^touch(end|cancel)/.test(e)?(i=Nm(t.changedTouches,r.identifier||0))&&(r=null):!r&&/^touchstart/.test(e)?r=i=Em(t.changedTouches,n.target):r&&(i=Nm(t.changedTouches,r.identifier||0));return i}(o,t):Em(o.changedTouches,n.target)),s){var c=function(t,e){var n=t.clientX||0,r=t.clientY||0,i=function(t){return t===window||t===document||t===document.body?Tm:t.getBoundingClientRect()}(e);return[n-i.left,r-i.top]}(s,n.target);n.emit(a,o,c)}}}}));return n.enable=function(){return o.forEach(Om(t,!0)),n},n.disable=function(){return r=null,o.forEach(Om(t,!1)),n},n.enable(),n};function Em(t,e){return Array.prototype.slice.call(t).filter((function(t){return t.target===e}))[0]||t[0]}function Nm(t,e){for(var n=0;n<t.length;n++)if(t[n].identifier===e)return t[n];return null}function Om(t,e){return function(n){e?t.addEventListener(n.type,n.listener,{passive:!1}):t.removeEventListener(n.type,n.listener,{passive:!1})}}var zm,Fm,Dm,jm=function(t){return null!=t},Lm=Object.keys,Pm=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return Lm(jm(t)?Object(t):t)},Hm=Math.max,Rm=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,i,a=arguments,o=Hm(arguments.length,2);for(t=Object(function(t){if(!jm(t))throw new TypeError("Cannot use null or undefined");return t}(t)),i=function(r){try{t[r]=e[r]}catch(t){n||(n=t)}},r=1;r<o;++r)Pm(e=a[r]).forEach(i);if(void 0!==n)throw n;return t},Bm=Array.prototype.forEach,Im=Object.create,Ym=function(t){var e=Im(null);return Bm.call(arguments,(function(t){jm(t)&&function(t,e){var n;for(n in t)e[n]=t[n]}(Object(t),e)})),e},qm=function(t){return"function"==typeof t},Um="razdwatrzy",$m=String.prototype.indexOf,Vm="function"==typeof Um.contains&&!0===Um.contains("dwa")&&!1===Um.contains("foo")?String.prototype.contains:function(t){return $m.call(this,t,arguments[1])>-1},Gm=n((function(t){var e;e=t.exports=function(t,e){var n,r,i,a,o;return arguments.length<2||"string"!=typeof t?(a=e,e=t,t=null):a=arguments[2],null==t?(n=i=!0,r=!1):(n=Vm.call(t,"c"),r=Vm.call(t,"e"),i=Vm.call(t,"w")),o={value:e,configurable:n,enumerable:r,writable:i},a?Rm(Ym(a),o):o},e.gs=function(t,e,n){var r,i,a,o;return"string"!=typeof t?(a=n,n=e,e=t,t=null):a=arguments[3],null==e?e=void 0:qm(e)?null==n?n=void 0:qm(n)||(a=n,n=void 0):(a=e,e=n=void 0),null==t?(r=!0,i=!1):(r=Vm.call(t,"c"),i=Vm.call(t,"e")),o={get:e,set:n,configurable:r,enumerable:i},a?Rm(Ym(a),o):o}})),Wm=function(t){if(!function(t){return t&&("symbol"==typeof t||"Symbol"===t["@@toStringTag"])||!1}(t))throw new TypeError(t+" is not a symbol");return t},Xm=Object.create,Zm=Object.defineProperties,Jm=Object.defineProperty,Qm=Object.prototype,Km=Xm(null),ty=(Dm=Xm(null),function(t){for(var e,n=0;Dm[t+(n||"")];)++n;return Dm[t+=n||""]=!0,Jm(Qm,e="@@"+t,Gm.gs(null,(function(t){Jm(this,e,Gm(t))}))),e});Fm=function t(e){if(this instanceof Fm)throw new TypeError("TypeError: Symbol is not a constructor");return t()};var ey=zm=function t(e){var n;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a constructor");return n=Xm(Fm.prototype),e=void 0===e?"":String(e),Zm(n,{__description__:Gm("",e),__name__:Gm("",ty(e))})};Zm(zm,{for:Gm((function(t){return Km[t]?Km[t]:Km[t]=zm(String(t))})),keyFor:Gm((function(t){var e;for(e in Wm(t),Km)if(Km[e]===t)return e})),hasInstance:Gm("",zm("hasInstance")),isConcatSpreadable:Gm("",zm("isConcatSpreadable")),iterator:Gm("",zm("iterator")),match:Gm("",zm("match")),replace:Gm("",zm("replace")),search:Gm("",zm("search")),species:Gm("",zm("species")),split:Gm("",zm("split")),toPrimitive:Gm("",zm("toPrimitive")),toStringTag:Gm("",zm("toStringTag")),unscopables:Gm("",zm("unscopables"))}),Zm(Fm.prototype,{constructor:Gm(zm),toString:Gm("",(function(){return this.__name__}))}),Zm(zm.prototype,{toString:Gm((function(){return"Symbol ("+Wm(this).__description__+")"})),valueOf:Gm((function(){return Wm(this)}))}),Jm(zm.prototype,zm.toPrimitive,Gm("",(function(){return Wm(this)}))),Jm(zm.prototype,zm.toStringTag,Gm("c","Symbol")),Jm(Fm.prototype,zm.toPrimitive,Gm("c",zm.prototype[zm.toPrimitive])),Jm(Fm.prototype,zm.toStringTag,Gm("c",zm.prototype[zm.toStringTag]));var ny=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return"symbol"==typeof Symbol.iterator||"object"==typeof Symbol.isConcatSpreadable&&("object"==typeof Symbol.iterator&&("object"==typeof Symbol.toPrimitive&&("object"==typeof Symbol.toStringTag&&"object"==typeof Symbol.unscopables)))}()?Symbol:ey,ry=oy,iy=function(t){var e,n=t.length;return i(),r[ay]=!0,r;function r(){return t.length!==n?(n=t.length,i(),!0):e()}function i(){for(var n=[],r=0;r<t.length;r++)!function(e){n[e]=function(){return t[e]}}(r);e=oy(n)}},ay=ny("see-change-array");function oy(t){for(var e=[],n=0;n<t.length;n++)e[n]=t[n]();return function(){for(var n=!1,r=0;r<t.length;r++){var i=t[r],a=i();if(i[ay])a&&(n=!0,e[r]=a);else a!==e[r]&&(n=!0,e[r]=a)}return n}}ry.array=iy;var sy={enabled:!0,style:"timeline",loop:!0,graph:!0,axes_custom_enabled:!1,graph_height:6,scrubber_height:3.25,scrubber_snap:!1,scrubber_snap_paused:!1,axis_font_size:.7,axis_nice_x:!1,axis_nice_y:!1,date_format_display:"",margin:{top:.75,left:.75,right:0,bottom:0},playback_button:{margin_right:1.25,margin_right_button:.5,label_size:1,button_size:1.25,button_color:"#333333",icon_size:1.25,icon_color:"#FFFFFF"},duration:30,duration_tween:2,duration_wait_at_end:0,play_on_load:!0,playing:!0,playback_has_saved_range:!1,playback_has_saved_position:!1,playback_range:[0,1],playback_position:0,color_background:"#F2F2F2",color_axes:"#555555",curve:!1,_prevent_play_on_load:!1},cy={getOrdinal:function(){return!1},getOrdinalKeys:function(){return[]},getOrdinalValue:function(t,e){return 0},getMode:function(){return"rate"},getLineColorCategorical:function(){return"#000000"},getLineColorContinuous:function(){return"#000000"},getCategorical:function(){return!1},getData:function(){return[]},getDatumStartTime:function(t){return new Date},getDatumEndTime:function(t){return new Date},getDatumCount:function(t){return 1},getDatumCategory:function(t){return""},getDatumSource:function(t){return null},getDatumTarget:function(t){return null},getPadding:function(){return 0},getInterval:function(t,e){return"day"},isCategorySelected:function(t){return!1},formatNumber:function(t){return String(Number(t))},shouldUpdate:function(t){return!0},encodeProgress:function(t){return t},decodeProgress:function(t){return t}},ly={year:ou,month:iu,week:Zl,day:Wl,hour:Vl,minute:Ul,second:Yl};function uy(t){var e=t.getMode(),n=Object.create({}),r=[],i=t.getCategorical(),a=t.getData();if(!a||!a.length)return{bins_by_category:{"":[]},bins_all:[]};for(var o=0;o<a.length;o++){var s=a[o],c=+t.getDatumStartTime(s),l=+t.getDatumEndTime(s);if(c>l){var u=c;c=l,l=u}s._tl_start_ms=c,s._tl_end_ms=l,s._tl_count=t.getDatumCount(s)}a.sort((function(t,e){return t._tl_start_ms-e._tl_start_ms}));var f=a[0]._tl_start_ms,d=ib(a,(function(t){return+t._tl_end_ms})),h=function(t){if("string"!=typeof t)return t;return ly[t]}(t.getInterval(f,d));if(!h)return{bins_by_category:{"":[]},bins_all:[]};for(o=0;o<a.length;o++){(s=a[o])._tl_bin_sid=h.count(f,s._tl_start_ms),s._tl_bin_eid=h.count(f,s._tl_end_ms)}for(o=0;o<a.length;o++){s=a[o];if(!t.getDatumSource(s)){for(var p,_=s;p=t.getDatumTarget(_);)_=p;for(var g=s._tl_bin_sid,b=_._tl_bin_eid,m=t.getDatumCategory(s)||"",y=n[m]||(n[m]=[]);y.length<=b;)y[y.length]=0;for(;r.length<=b;)r[r.length]=0;for(var v=s,w=t.getDatumTarget(v),x=z(w),k="total"!==e,M="total"===e,S=!0,A=g;A<=b;A++){for(w&&A>=x&&M&&(y[A]-=v._tl_count,r[A]-=v._tl_count);w&&A>=x;)v=w,x=z(w=t.getDatumTarget(v)),S=!0;S&&(y[A]+=v._tl_count,r[A]+=v._tl_count),S=k}}}for(var T in n)for(var C=n[T];C.length<r.length;)C[C.length]=0;if("total"===e)for(var T in r=fy(r),n)n[T]=fy(n[T]);var E=Object.keys(n),N=i?E.reduce((function(t,e){return Math.min(t,ab(n[e]))}),1/0):ab(r),O=i?E.reduce((function(t,e){return Math.max(t,ib(n[e]))}),-1/0):ib(r);return{min_value:N,max_value:O,min_time:f,max_time:d,count:h.count(f,d),bins_by_category:n,bins_all:r,categories:E};function z(t){return t?t._tl_bin_sid:a.length+1}}function fy(t){for(var e=0,n=0;n<t.length;n++)e+=t[n],t[n]=e;return t}var dy=function(t){return 1===t?t:1-Math.pow(2,-10*t)},hy={size:1792,path:"M1576 927l-1328 738q-23 13-39.5 3t-16.5-36v-1472q0-26 16.5-36t39.5 3l1328 738q23 13 23 31t-23 31z"},py={size:512,path:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},_y={size:512,path:"M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"},gy=[512,"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"],by=[512,"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"];function my(t,e){var n=e/t[0];return t[1].replace(/-?\d+(?:\.\d+)?/g,(function(t){return parseInt(t,10)*n}))}var yy=document.createElement("style");yy.innerHTML="\n\t.flourish-timeline {\n\t\tpointer-events: none;\n\t\t-webkit-user-select: none;\n\t\t-moz-user-select: none;\n\t\tuser-select: none;\n\t}\n\n\t.flourish-timeline .tl-layer-back,\n\t.flourish-timeline .tl-layer-fore,\n\t.flourish-timeline .tl-layer-main {\n\t\tvisibility: hidden;\n\t}\n\n\t.flourish-timeline.style-timeline .tl-layer-back,\n\t.flourish-timeline.style-timeline .tl-layer-fore,\n\t.flourish-timeline.style-timeline .tl-layer-main {\n\t\tvisibility: visible;\n\t}\n\n\t.flourish-timeline.style-timeline .tl-interaction-box {\n\t\tpointer-events: all;\n\t}\n\n\t.flourish-timeline .tl-playback-button {\n\t\tpointer-events: all;\n\t}\n\n\t.tl-interaction-box {\n\t\tvisibility: hidden;\n\t\tcursor: pointer;\n\t}\n\n\t.tl-playback-button {\n\t\tcursor: pointer;\n\t}\n\n\t.flourish-timeline.style-timeline .tl-playback-button text {\n\t\tvisibility: hidden;\n\t\tpointer-events: none;\n\t}\n\n\t.tl-playback-button path {\n\t\tfill: #FFF;\n\t}\n\n\t.tl-axis-bottom .tick:last-of-type text {\n\t\ttext-anchor: end;\n\t}\n\n\t.flourish-timeline-info {\n\t\tdisplay: none;\n\t\theight: 2rem;\n\t\tfont-size: 1rem;\n\t\talign-items: center;\n\t\tjustify-content: flex-start;\n\t\tcolor: #666;\n\t}\n\n\t.flourish-timeline-info.enabled {\n\t\tdisplay: flex;\n\t}\n\n\t.flourish-timeline-info svg {\n\t\tmargin-right: 0.35rem;\n\t}\n\n\t.flourish-timeline-info .tl-info-icon {\n\t\tflex-shrink: 0;\n\t}\n\n\t.flourish-timeline-info .tl-info-icon,\n\t.flourish-timeline-info .tl-info-text,\n\t.flourish-timeline-info .tl-info-clear {\n\t\topacity: 0;\n\t\ttransition: opacity 0.3s;\n\t}\n\n\t.flourish-timeline-info.active-info .tl-info-icon,\n\t.flourish-timeline-info.active-info .tl-info-text,\n\t.flourish-timeline-info.active-clear .tl-info-clear {\n\t\topacity: 1;\n\t}\n\n\t.flourish-timeline-info .tl-info-clear {\n\t\tcolor: #f66;\n\t\tcursor: pointer;\n\t\tborder-bottom: 1px solid transparent;\n\t\tmargin-left: auto;\n\t\ttext-align: right;\n\t\tposition: relative;\n\t\tmargin-right: 1rem;\n\t}\n\n\t.flourish-timeline-info .tl-info-clear:hover {\n\t\tborder-bottom-color: #f66;\n\t}\n\n\t.flourish-timeline-info .tl-info-clear > svg {\n\t\tposition: absolute;\n\t\ttop: 3px;\n\t\tright: -1.5rem;\n\t}\n",document.body.appendChild(yy);var vy,wy="story_editor"===window.Flourish.environment||"sdk"===window.Flourish.environment,xy=function(t,e,n){var r,i=this;n.getDatumStartTime&&!n.getDatumEndTime&&(n.getDatumEndTime=n.getDatumStartTime),this.container=t||document.body,this.state=Object.assign(e,Object.assign(sy,e)),this.options=Object.assign({},cy,n),this.migrateState(),this.is_ordinal=!!this.options.getOrdinal(),Object.defineProperties(this.state,{_instance:{enumerable:!1,value:this}}),this.svg=Uo(this.container).append("svg").classed("flourish-timeline",!0),this.layer_back=this.svg.append("g").classed("tl-layer-back",!0),this.layer_main=this.svg.append("g").classed("tl-layer-main",!0),this.layer_fore=this.svg.append("g").classed("tl-layer-fore",!0),this.interaction_box=this.svg.append("rect").classed("tl-interaction-box",!0),this.initInfoBox(),this.layer_back.append("rect").classed("tl-background",!0),this.x_scale=im(),this.y_scale=yb(),this.x_scale_cursor=yb(),this.y_scale_cursor=yb(),this.axis_bottom=(r=this.x_scale,id(Zf,r)),this.axis_bottom_group=this.layer_fore.append("g").classed("tl-axis-bottom",!0),this.axis_left=function(t){return id(Jf,t)}(this.y_scale),this.axis_left_group=this.layer_fore.append("g").classed("tl-axis-left",!0),this.range_box=this.layer_fore.append("g").classed("tl-range-box",!0),this.range_box_rect=this.range_box.selectAll("rect").data([0,1]).enter().append("rect"),this.range_box_bars=this.range_box.selectAll("line").data([0,1]).enter().append("line"),this.scrub_bar=this.layer_fore.append("line").classed("tl-scrub-bar",!0).attr("stroke",this.state.color_axes||"currentColor"),this.scrub_node=this.layer_fore.append("path").classed("tl-scrub-node",!0).attr("d","M 0 0 L -5 -7 L 5 -7 z").attr("fill",this.state.color_axes||"currentColor"),this.progress=0,this.progress_encoded=null,this.progress_is_animating=!1,this.progress_animation_source=0,this.progress_animation_target=1,this.progress_animation_amount=0,this.progress_animation_duration=2,this.loop_block_playback=!1,this.playback_group=this.svg.append("g").classed("tl-playback-button",!0),this.playback_group.node().addEventListener("click",this.onClickPlaybackButton.bind(this)),this.playback_button=this.playback_group.append("circle").attr("r",16),this.playback_icon=this.playback_group.append("path"),this.playback_label=this.playback_group.append("text").style("alignment-baseline","middle").style("dominant-baseline","middle"),this.defs=this.svg.append("defs"),this.mask=this.defs.append("clipPath").attr("id","main-mask").append("rect"),this.layer_main.attr("clip-path","url(#main-mask)"),document.addEventListener("touchstart",{}),this.is_dragging=!1,this.drag_start_time=Date.now(),this.touches=Cm(window,{preventSimulated:!1,target:this.svg.node(),filtered:!0}),this.touches.on("start",this.onTouchStart.bind(this)),this.touches.on("move",this.onTouchMove.bind(this)),this.touches.on("end",this.onTouchEnd.bind(this)),this.updateRemScale(),this.has_updated=!1,this.update(),this.shouldDrawMask=ry([function(){return i.progress},function(){return i.state.axis_nice_x},function(){return i.state.axis_nice_y},function(){return i.is_ordinal},function(){return i.is_dragging},function(){return i.state.graph},function(){return i.state.graph_height},function(){return i.bin_results&&i.bin_results.min_time},function(){return i.bin_results&&i.bin_results.max_time},function(){return i.bin_results&&i.bin_results.keys_string}])};function ky(t){return JSON.parse(JSON.stringify(t))}xy.prototype.loop=function(){var t;function e(n){if(window.requestAnimationFrame(e),t){var r=n-t;this.tick(r/1e3)}t=n}e=e.bind(this),window.requestAnimationFrame(e)},xy.prototype.initInfoBox=function(){var t=this;if(wy){this.updateRemScale();var e=.875*this.rem;this.info_box=Uo(this.container).append("div").classed("flourish-timeline-info",!0).classed("enabled",wy),this.info_box_icon=this.info_box.append("svg").classed("tl-info-icon",!0).attr("width",e).attr("height",e).append("path").attr("fill","#666").attr("d",my(gy,e)),this.info_box_text=this.info_box.append("div").classed("tl-info-text",!0),this.info_box_clear=this.info_box.append("div").classed("tl-info-clear",!0).text("Reset timeline state").on("click",(function(){t.state.playback_has_saved_position=!1,t.state.playback_has_saved_range=!1,t.drawInfoBox(),t.drawRangeBox()})),this.info_box_clear.append("svg").attr("width",e).attr("height",e).append("path").attr("fill","#f66").attr("d",function(t){return my(by,t)}(e))}},xy.prototype.isEnabled=function(){return this.state.enabled&&(!this.bin_results||this.bin_results.bins_all.length>1)},xy.prototype.getProgress=function(){var t=this.state.loop*this.state.duration_wait_at_end/this.state.duration,e=this.progress;return e-=Math.max(0,Math.min(this.progress-1,t))},xy.prototype.getHeight=function(){return this.height},xy.prototype.getLabelHeight=function(){return Math.floor(this.rem*this.state.axis_font_size+8)},xy.prototype.update=function(){this.updateRemScale(),this.migrateState(),this.has_updated&&!this.state._prevent_play_on_load&&(this.state.playing=!!this.state.play_on_load,this.state._prevent_play_on_load=!0),this.has_updated=!0,this.bin_results&&!this.options.shouldUpdate(this)||(this.is_ordinal=!!this.options.getOrdinal(),this.bin_results=this.state.enabled&&(this.is_ordinal?function(t){var e=t.getMode(),n=Object.create({}),r=[];t.getCategorical();var i=t.getData();if(!i||!i.length)return{bins_by_category:{"":[]},bins_all:[]};for(var a=t.getOrdinalKeys(),o=0;o<i.length;o++){for(var s=i[o],c=t.getDatumCategory(s)||"",l=n[c]||(n[c]=[]);l.length<a.length;)l[l.length]=0;for(;r.length<a.length;)r[r.length]=0;for(var u=0;u<a.length;u++){var f=t.getOrdinalValue(s,a[u],u)||0;l[u]+=f,r[u]+=f}}for(var d in n)for(l=n[d];l.length<r.length;)l[l.length]=0;if("total"===e)for(var d in r=fy(r),n)n[d]=fy(n[d]);var h=Object.keys(n),p=h.reduce((function(t,e){return Math.min(t,ab(n[e]))}),1/0),_=h.reduce((function(t,e){return Math.max(t,ib(n[e]))}),-1/0);return{min_value:p,max_value:_,keys:a,keys_string:a.join("ÿ"),count:a.length,bins_by_category:n,bins_all:r,categories:h}}(this.options):uy(this.options))),this.svg.classed("style-timeline","timeline"===this.state.style).classed("style-button","button"===this.state.style),this.isEnabled()?(this.svg.style("display","block"),this.updateDimensions(),this.updateAxes(),null!==this.progress_encoded&&(this.progress=this.options.decodeProgress.call(this,this.progress_encoded)),this.state.playback_has_saved_position&&(this.progress_is_animating=!0,this.progress_animation_source=this.progress,this.progress_animation_target=this.options.decodeProgress.call(this,this.state.playback_position),this.progress_animation_amount=0,this.progress_animation_duration=this.state.duration_tween),this.scrub_bar.attr("stroke",this.state.color_axes||"currentColor"),this.draw()):this.svg.style("display","none")},xy.prototype.updateDimensions=function(){var t=this.container.getBoundingClientRect();return this.width=Math.floor(t.width),"button"===this.state.style?this.height=this.rem*(2*this.state.playback_button.button_size+this.state.margin.top+this.state.margin.bottom):this.state.graph?this.height=this.rem*this.state.graph_height:this.height=this.rem*this.state.scrubber_height,this.svg.attr("width",this.width+"px"),this.svg.attr("height",this.getHeight()+"px"),t},xy.prototype.updateAxes=function(){var t=this,e=this.width-this.rem*this.state.margin.right-1,n=this.rem*(2*this.state.playback_button.button_size+this.state.playback_button.margin_right+this.state.margin.left),r=this.bin_results?this.bin_results.min_time:0,i=this.bin_results?this.bin_results.max_time:1,a=this.bin_results?this.bin_results.max_value||0:1;if(this.y_scale=yb().range([this.height-this.rem*this.state.margin.bottom-this.getLabelHeight(),this.rem*this.state.margin.top]).domain([0,a]),this.state.graph&&(n+=this.drawAndMeasureAxisY().width),this.is_ordinal){var o=(this.bin_results.keys||[]).map((function(r,i){var a=i/(t.bin_results.keys.length-1);return n+(e-n)*a}));this.x_scale=cb().domain(this.bin_results.keys||[]).range(o)}else this.x_scale=im().range([n,e]).domain([r,i]);this.y_scale_chart=this.y_scale.copy().domain([0,1]),this.x_scale_chart=yb().range([n,e]).domain([0,1]),this.state.axis_nice_y&&(this.y_scale=this.y_scale.nice()),this.is_ordinal||this.state.axis_nice_x&&(this.x_scale=this.x_scale.nice());var s=this.x_scale.range(),c=s.length-1;this.x_scale_cursor=yb().range([0,1]).domain([this.is_ordinal?s[0]:this.x_scale(r),this.is_ordinal?s[c]:this.x_scale(i)])},xy.prototype.draw=function(){this.updateRemScale(),"button"!==this.state.style?this.state.graph?(this.drawGraph(),this.drawAxisX(),this.drawAxisY(),this.drawMask()):(this.drawScrubber(),this.drawAxisX()):(this.axis_bottom_group.selectAll(".domain").data([]).exit().remove(),this.axis_bottom_group.selectAll(".tick").data([]).exit().remove(),this.axis_left_group.selectAll(".domain").data([]).exit().remove(),this.axis_left_group.selectAll(".tick").data([]).exit().remove(),this.layer_back.select(".tl-background").style("visibility","hidden"),this.scrub_bar.attr("visibility","hidden")),this.drawPlaybackButton(),this.drawRangeBox(),this.drawInfoBox()},xy.prototype.tick=function(t){if(this.isEnabled()){if(this.progress_is_animating){var e=this.progress_animation_source,n=this.progress_animation_target,r=this.progress_animation_amount+=t/this.progress_animation_duration;this.progress=e+(n-e)*dy(r),this.progress_is_animating=r<1}else{var i=!this.is_dragging&&!this.loop_block_playback&&this.state.playing,a=+i*t/this.state.duration;if(this.progress+=a,!this.is_dragging&&!i&&this.state.scrubber_snap_paused)(e=this.progress)!==(n=this.snapProgress(this.progress))&&(this.progress_is_animating=!0,this.progress_animation_amount=0,this.progress_animation_source=e,this.progress_animation_target=n,this.progress_animation_duration=this.state.duration_tween);this.state.playing&&!this.is_dragging&&!this.state.loop&&this.progress>=1&&(this.progress=1,this.loop_block_playback=!0,this.drawPlaybackButton()),this.progress=this.clampedProgress(this.progress,!this.is_dragging)}this.progress_encoded=this.options.encodeProgress.call(this,this.progress),"button"!==this.state.style&&this.drawMask()}},xy.prototype.onClickPlaybackButton=function(t){this.state.playing=!this.state.playing,this.loop_block_playback=!1,!this.state.loop&&this.state.playing&&this.progress>=1&&(this.progress=0),this.state.playing&&(this.state.playback_has_saved_position=!1,this.progress_is_animating=!1),this.drawPlaybackButton(),this.drawInfoBox(),t.preventDefault(),t.stopPropagation()},xy.prototype.onTouchStart=function(t,e){vm(t.target,this.interaction_box.node())&&(document.querySelector(".fl-annotations.is-editing")||(this.is_dragging=!0,this.drag_start_time=Date.now(),this.updateDragPosition(e[0],!0,!1),this.drawPlaybackButton(),this.drawMask(),t.stopPropagation()))},xy.prototype.onTouchMove=function(t,e){this.is_dragging&&(this.updateDragPosition(e[0],!1,!1),this.drawMask(),t.preventDefault(),t.stopPropagation())},xy.prototype.onTouchEnd=function(t,e){this.is_dragging&&(this.is_dragging=!1,this.updateDragPosition(e[0],!1,!0),this.drawPlaybackButton(),this.drawMask(),t.preventDefault(),t.stopPropagation())},xy.prototype.snapProgress=function(t){var e=this.bin_results.count;return this.is_ordinal&&(e-=1),Math.round(t*e)/e},xy.prototype.updateDragPosition=function(t,e,n){if(t=Math.max(t,this.x_scale_chart(0)),t=Math.min(t,this.x_scale_chart(1)),this.progress=this.x_scale_cursor(t),this.loop_block_playback=!1,this.state.scrubber_snap&&(this.progress=this.snapProgress(this.progress)),this.progress_is_animating=!1,wy){if(this.state.playing){var r=this.state.playback_range;e&&(r[0]=ky(this.options.encodeProgress.call(this,this.progress))),r[1]=ky(this.options.encodeProgress.call(this,this.progress)),n&&(r[0]===r[1]||Date.now()-this.drag_start_time<300)?this.state.playing=!1:(this.state.playback_has_saved_range=!0,this.state.playback_has_saved_position=!1)}this.state.playing||(this.state.playback_position=ky(this.options.encodeProgress.call(this,this.progress)),this.state.playback_has_saved_range=!1,this.state.playback_has_saved_position=!0),this.drawRangeBox(),this.drawInfoBox()}else this.progress=this.clampedProgress(this.progress,!1)},xy.prototype.updateRemScale=function(){this.rem=parseFloat(getComputedStyle(document.documentElement).fontSize)},xy.prototype.drawGraph=function(){var t=this,e=this.x_scale_chart(0),n=this.x_scale_chart(1)-e,r=this.y_scale_chart(1),i=this.y_scale_chart(0)-r;this.axis_left_group.style("visibility","visible"),this.layer_back.select(".tl-background").style("fill",this.state.color_background||"transparent").style("visibility","visible").attr("x",e).attr("y",r).attr("width",n).attr("height",Math.max(0,i)),this.interaction_box.attr("x",e).attr("y",r).attr("width",n).attr("height",Math.max(0,i)),this.scrub_bar.attr("x1",0).attr("x2",0).attr("y1",r).attr("y2",r+i).attr("visibility","visible");var a=this.options.getCategorical();if(this.is_ordinal)l=gm().curve(this.state.curve?ym:hm).x((function(e,n){return t.x_scale(t.bin_results.keys[n])})).y((function(e){return t.y_scale(e)}));else var o=this.bin_results.max_time-this.bin_results.min_time,s=+this.bin_results.min_time,c=this.bin_results.count,l=gm().curve(this.state.curve?ym:hm).x((function(e,n){return t.x_scale(s+o*n/c)})).y((function(e){return t.y_scale(e)}));for(var u=function(t,e){return e?Object.keys(t.bins_by_category).map((function(e){return{category:e,values:t.bins_by_category[e]}})):[{category:"",values:t.bins_all}]}(this.bin_results,a),f={},d=0;d<u.length;d++){var h=u[d].category;f[h]=!!this.options.isCategorySelected(h)}var p=this.layer_main.selectAll(".tl-line").data(u,(function(t){return t.category}));p.enter().append("path").classed("tl-line",!0).attr("data-category",(function(t){return t.category})).merge(p).sort((function(t,e){return+f[t.category]-+f[e.category]})).attr("d",(function(t){return l(t.values)})).style("fill","none").style("opacity",(function(t){return f[t.category]?1:.15})).style("stroke-width",2).style("stroke",a?this.options.getLineColorCategorical:this.options.getLineColorContinuous),p.exit().remove()},xy.prototype.drawAxisX=function(){if(this.axis_bottom.scale(this.x_scale.copy()).ticks(this.width/100),this.is_ordinal)this.axis_bottom.tickFormat(null);else{var t=this.x_scale.tickFormat(this.width/100,this.state.date_format_display||null);this.axis_bottom.tickFormat(t)}var e=-1/0;this.axis_bottom(this.axis_bottom_group),this.axis_bottom_group.attr("transform","translate(0, "+this.y_scale_chart(0)+")").style("color",this.state.color_axes||"currentColor").style("font-size",this.state.axis_font_size+"rem").selectAll(".tick").each((function(){var t=Uo(this),n=t.select("text"),r=n.node().getBoundingClientRect();e>r.left-8?(n.style("visibility","hidden"),t.select("line").attr("y2",3).style("opacity",.5)):0!==r.left&&0!==r.right&&(n.style("visibility","visible"),t.select("line").attr("y2",6).style("opacity",1),e=r.right)}))},xy.prototype.drawAxisY=function(){if(this.isEnabled()){this.axis_left.scale(this.y_scale.copy()).ticks(this.height/25).tickFormat(this.options.formatNumber);var t=1/0;this.axis_left(this.axis_left_group),this.axis_left_group.attr("transform","translate("+this.x_scale_chart(0)+", 0)").style("font-size",this.state.axis_font_size+"rem").style("color",this.state.color_axes||"currentColor").selectAll(".tick").each((function(){var e=Uo(this),n=e.select("text"),r=n.node().getBoundingClientRect();t<r.bottom-8?(n.style("visibility","hidden"),e.select("line").attr("x2",-3).style("opacity",.5)):0!==r.bottom&&0!==r.top&&(n.style("visibility","visible"),e.select("line").attr("x2",-6).style("opacity",1),t=r.top)}))}},xy.prototype.drawAndMeasureAxisY=function(){return this.axis_left.scale(this.y_scale.copy()).ticks(this.height/25).tickFormat(this.options.formatNumber),this.axis_left(this.axis_left_group),this.axis_left_group.node().getBoundingClientRect()},xy.prototype.drawRangeBox=function(){if(!this.state.playback_has_saved_range||"timeline"!==this.state.style)return this.range_box.style("visibility","hidden");var t=this.state.playback_range,e=this.options.decodeProgress.call(this,t[0]),n=this.options.decodeProgress.call(this,t[1]),r=Math.min(e,n),i=Math.max(e,n),a=this.x_scale.domain(),o=this.is_ordinal?this.x_scale(a[0]):this.x_scale(this.bin_results.min_time),s=this.is_ordinal?this.x_scale(a[a.length-1]):this.x_scale(this.bin_results.max_time),c=this.x_scale_chart(0),l=this.x_scale_chart(1),u=o+(s-o)*r,f=o+(s-o)*i,d=this.y_scale_chart(1),h=this.y_scale_chart(0)-d;this.range_box.style("visibility","visible"),this.range_box_rect.attr("fill","rgba(80, 80, 80, 0.35)").attr("x",(function(t){return t?c:f})).attr("width",(function(t){return t?u-c:l-f})).attr("y",d).attr("height",Math.max(0,h))},xy.prototype.drawScrubber=function(){var t=this.x_scale_chart(0),e=this.x_scale_chart(1)-t,n=this.y_scale_chart(1),r=this.y_scale_chart(0)-n;this.layer_main.selectAll(".tl-line").remove(),this.axis_left_group.style("visibility","hidden"),this.scrub_bar.attr("visibility","hidden"),this.layer_back.select(".tl-background").style("fill","transparent").style("visibility","visible").attr("x",t).attr("y",n).attr("width",e).attr("height",Math.max(0,r)),this.interaction_box.attr("x",t).attr("y",n).attr("width",e).attr("height",Math.max(0,this.height-n))},xy.prototype.drawInfoBox=function(){if(wy){this.info_box.style("margin-left",this.x_scale_chart(0)+"px");var t=!1,e=!1;this.state.playback_has_saved_range?(this.info_box_text.text("This slide will only play the above portion of the timeline."),t=e=!0):this.state.playback_has_saved_position&&(this.info_box_text.text("This slide will start paused at the current position in the timeline."),t=e=!0),this.info_box.classed("active-info",e),this.info_box.classed("active-clear",t)}},xy.prototype.drawMask=function(){if(!this.shouldDrawMask||this.shouldDrawMask()){var t=this.x_scale.domain(),e=this.x_scale_chart(0),n=this.x_scale_chart(1)-e,r=this.y_scale_chart(1),i=this.y_scale_chart(0)-r,a=this.is_ordinal?this.x_scale(t[0]):this.x_scale(this.bin_results.min_time),o=this.is_ordinal?this.x_scale(t[t.length-1]):this.x_scale(this.bin_results.max_time),s=Math.min(Math.max(a+(o-a)*this.progress,e),e+n),c=s>e&&s<e+n;if(this.mask.attr("x",e).attr("y",r).attr("width",Math.max(0,s-e)).attr("height",Math.max(0,i)),this.state.graph){var l=(this.is_dragging||c)&&"timeline"===this.state.style;this.scrub_node.attr("visibility","hidden"),this.scrub_bar.attr("transform","translate("+s+", 0)").attr("visibility",l?"visible":"hidden")}else{var u="timeline"===this.state.style;this.scrub_bar.attr("visibility","hidden"),this.scrub_node.attr("transform","translate("+s+", "+(r+i)+")").attr("visibility",u)}}},xy.prototype.drawPlaybackButton=function(){var t=this.rem*(this.state.margin.left+this.state.playback_button.button_size),e="button"===this.state.style?this.rem*(this.state.margin.top+this.state.playback_button.button_size):this.y_scale_chart(.5);"button"!==this.state.style&&this.state.graph&&(e+=this.getLabelHeight()/2),this.playback_group.attr("transform","translate("+t+","+e+")"),this.playback_button.attr("fill",this.state.playback_button.button_color||"currentColor"),this.playback_button.attr("r",this.rem*this.state.playback_button.button_size),this.playback_icon.style("fill",this.state.playback_button.icon_color),this.playback_label.attr("font-size",this.state.playback_button.label_size+"rem"),this.playback_label.attr("transform","translate("+this.rem*(this.state.playback_button.button_size+this.state.playback_button.margin_right_button)+",0)");var n=this.rem*this.state.playback_button.icon_size;if(!this.state.loop&&this.progress>=1){var r=n/_y.size;this.playback_label.text("Replay"),this.playback_icon.attr("d",_y.path).attr("transform","translate("+8*n/16+", "+-8*n/16+") scale("+-r+", "+r+")")}else if(this.state.playing){var i=n/py.size;this.playback_label.text("Pause"),this.playback_icon.attr("d",py.path).attr("transform","translate("+-7*n/16+", "+-8*n/16+") scale("+i+")")}else{var a=n/hy.size;this.playback_label.text("Play"),this.playback_icon.attr("d",hy.path).attr("transform","translate("+-6*n/16+", "+-8*n/16+") scale("+a+")")}},xy.prototype.clampedProgress=function(t,e){if(this.is_ordinal)var n=0,r=1;else{var i=this.x_scale.domain();n=(i[0]-this.bin_results.min_time)/(this.bin_results.max_time-this.bin_results.min_time),r=(i[1]-this.bin_results.min_time)/(this.bin_results.max_time-this.bin_results.min_time)}var a=this.state.loop*this.state.duration_wait_at_end/this.state.duration,o=this.options.getPadding()/this.state.duration,s=n-o,c=r+o+a;if(this.state.playback_has_saved_range){var l=this.state.playback_range,u=this.options.decodeProgress.call(this,l[0]),f=this.options.decodeProgress.call(this,l[1]);s=Math.min(u,f),c=Math.max(u,f)}return e?(t<s&&(t=c),t>c&&(t=s)):(t<s&&(t=s),t>c&&(t=c)),t},xy.prototype.annotationsDataFromCursor=function(t,e){var n=this.interaction_box.node().getBoundingClientRect(),r=this.x_scale_cursor(e[0]),i=1-(e[1]-n.y+this.rem*this.state.margin.top)/n.height;if(!(r<0||r>1||i<0||i>1)){var a=this.x_scale.range(),o=this.y_scale.range();return{type:"timeline",time:this.x_scale.invert(a[0]+(a[1]-a[0])*r),value:this.y_scale.invert(o[0]+(o[1]-o[0])*i)}}},xy.prototype.annotationsPositionFromData=function(t){if("timeline"===t.type){var e=this.svg.node().getBoundingClientRect();return[this.x_scale(t.time),e.y-this.rem*this.state.margin.top+this.y_scale(t.value)]}},xy.prototype.migrateState=function(){"number"==typeof this.state.margin&&(this.state.margin={top:this.state.margin,left:0,right:0,bottom:0})};var My,Sy,Ay,Ty,Cy=[];function Ey(t){var e=[];Fa.annotations_enabled&&(e=Fa.annotations_content.split("\n").filter((function(t){return""!=t&&void 0!==t&&(!(t.split("::").length<2)||(e={message:'Annotation "'+t+'" is invalid',explanation:'Should be "Annotation text :: Value on X axis"'},Cy.push(e),!1));var e})).map((function(t){return{text:t.split("::")[0].trim(),value:Number(Ih(t.split("::")[1].trim()))}})));var n=Uo("#annotations").attr("clip-path","url(#plot-clip)").style("display",Fa.annotations_enabled?"":"none").selectAll(".annotation").data(e);n.exit().remove();var r=n.enter().append("g").attr("class","annotation");r.append("line").attr("y1",0).attr("x1",0).attr("x2",0);var i=r.append("text").attr("transform","rotate(90)");i.append("tspan").attr("class","bg"),i.append("tspan").attr("class","fg");var a=n.merge(r),o=0,s="-0.4em";"middle"==Fa.annotations_align&&(o=t/2),"end"==Fa.annotations_align&&(o=t),"on"==Fa.annotations_offset&&(s="0.25em"),"below"==Fa.annotations_offset&&(s="1.2em"),a.attr("transform",(function(t){return"translate("+ov(t.value)+", 0)"})),a.select("line").attr("stroke-width",Fa.annotations_line_width).attr("stroke",Fa.annotations_line_color||Fa.layout.font_color).attr("opacity",Fa.annotations_line_opacity).attr("stroke-dasharray",Fa.annotations_line_dash+" "+Fa.annotations_line_dash).attr("y2",t),a.select("text").attr("y",s).attr("fill",Fa.annotations_text_color).style("font-weight",Fa.annotations_text_weight).style("font-size",Fa.annotations_text_size+"rem"),a.select("tspan.bg").style("stroke-width","on"==Fa.annotations_offset?"0.5em":"0.2em").attr("text-anchor",Fa.annotations_align).attr("x",o).text((function(t){return t.text})).style("stroke",Fa.layout.background_color_enabled?Fa.layout.background_color:"#ffffff"),a.select("tspan.fg").attr("text-anchor",Fa.annotations_align).attr("x",o).text((function(t){return t.text}))}function Ny(){var t=vy.getProgress();My!==t?(Av(),My=t,window.requestAnimationFrame(Ny)):window.requestAnimationFrame(Ny)}Ey();var Oy,zy,Fy=450;function Dy(){Oy=Oy||Uo("#caption");var t=Fa.caption_position.split("-")[0],e=Fa.caption_position.split("-")[1],n=xg.getPrimaryWidth()<Fy,r=0==Fa.caption_image_position.indexOf("column")||n;Oy.select("#text").style("width",r?null:100-Fa.caption_image_width+"%"),Oy.select("#image").style("max-height",r?Fa.caption_image_width+"%":null).style("width",r?null:Fa.caption_image_width+"%").style("margin",(function(){return this.querySelector("img")?"column"==Fa.caption_image_position||n?Fa.caption_space_between+"rem 0 0":"column-reverse"==Fa.caption_image_position?"0 0 "+Fa.caption_space_between+"rem":"row"==Fa.caption_image_position?"0 0 0 "+Fa.caption_space_between+"rem":"0 "+Fa.caption_space_between+"rem 0 0":0})),Oy.style("flex-direction",(function(){return n?"column":Fa.caption_image_position})).style("font-size",Fa.caption_font_size+"rem").style("padding",Fa.caption_padding+"rem").style("border-radius",Fa.caption_border_radius+"rem").style("align-items",0==Fa.caption_image_position.indexOf("column")?Fa.caption_text_align:null).style("background",(function(){var t=Fa.caption_background_color.replace("#","");return"rgba("+parseInt(t.substring(0,t.length/3),16)+","+parseInt(t.substring(t.length/3,2*t.length/3),16)+","+parseInt(t.substring(2*t.length/3,3*t.length/3),16)+","+Fa.caption_opacity+")"})).style("color",Fa.caption_text_color).style("border-color",Fa.caption_border_color).style("top",(function(){return"top"===t?"5%":"bottom"===t?null:"50%"})).style("left",(function(){return"left"===e?"5%":"right"===e?null:"50%"})).style("right",(function(){return"right"===e?"5%":null})).style("bottom",(function(){return"bottom"===t?"5%":null})).style("transform",(function(){return"translate("+("center"==e?"-50%":0)+", "+("center"==t?"-50%":0)+")"}))}function jy(){return this.declarations=[],this}function Ly(t){return this.selector=t,this.styles=[],this}jy.prototype.select=function(t){if(!t)return this;var e=new Ly(t);return e.parent=this,this.addDeclaration(e),e},jy.prototype.addDeclaration=function(t){return this.declarations.push(t),this},jy.prototype.print=function(){var t="";return this.declarations.forEach((function(e){t+=e.selector+" {\n",e.styles.forEach((function(e){t+="\t"+e[0]+": "+e[1]+";\n"})),t+="}\n\n"})),t},jy.prototype.clear=function(){return this.declarations=[],this},Ly.prototype.style=function(t,e){var n="function"==typeof value_?e():e;return""!==n&&null!=n&&this.styles.push([t,n]),this},Ly.prototype.select=function(t){return this.parent.select(this.selector+" "+t)};var Py=Object.freeze({font_size:1,font_weight:"bold",height:2});function Hy(t,e,n){for(var r in this._state=t,Py)void 0===this._state[r]&&(this._state[r]=Py[r]);return this._layout=n||{},this._styles=new jy,this._selector=e,this._createStylesheet(),this}function Ry(t,e){var n=function(t,e){if("string"!=typeof t)return!1;var n=Fs(t);return n.opacity=void 0!==e?e:1,n}(t,e);return!!n&&n.toString()}Hy.prototype._createStylesheet=function(){this._stylesheet=document.createElement("style"),this._stylesheet.className="fl-ui-styles-controls",document.head.appendChild(this._stylesheet)},Hy.prototype.update=function(){this._styles.clear(),this._styles.select(this._selector+".hidden").style("display","none"),this._styles.select(this._selector).style("vertical-align","middle").style("position","relative").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight),this._styles.select(".fl-controls-title").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight).style("vertical-align","middle"),this._styles.select(this._selector+".fl-control .button").style("height",this._state.height+"rem").style("padding","0 0.5em"),this._styles.select(this._selector+"-dropdown select").style("height",this._state.height+"rem").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight).style("padding","0 "+.1*this._state.height+"rem"),this._styles.select(this._selector+"-slider .slider-end-labels").style("font-size",this._state.font_size+"rem").style("font-weight",this._state.font_weight),this._styles.select(this._selector+"-slider").style("height",this._state.height+"rem"),this._stylesheet.innerHTML=this._styles.print()},document.createElement("canvas").getContext("2d");var By,Iy,Yy=Object.freeze({background:null,font_color:null,background_selected:"#2886b2",font_color_selected:"#ffffff",background_hover:null,font_color_hover:null,border_width:1,border_transparency:.25,border_color:null,border_radius:3});function qy(t,e,n){for(var r in this._state=t,Yy)void 0===this._state[r]&&(this._state[r]=Yy[r]);return this._layout=n||{},this._styles=new jy,this._selector=e,this._createStylesheet(),this}qy.prototype._createStylesheet=function(){this._stylesheet=document.createElement("style"),this._stylesheet.className="fl-ui-styles-button",document.head.appendChild(this._stylesheet)},qy.prototype.update=function(){this._styles.clear();var t=this._state.background||this._layout.background_color||"#ffffff",e=this._state.font_color||this._layout.font_color||"#333333",n=Ry(this._state.border_color||e,this._state.border_transparency),r=window.getComputedStyle(document.body).direction||"ltr";this._styles.select(this._selector+".fl-control.hidden").style("display","none"),this._styles.select(this._selector+".fl-control .button").style("overflow","hidden").style("white-space","nowrap").style("margin","0 2px 0 0 !important").style("background-color",t).style("color",e).style("border",this._state.border_width+"px solid "+n).style("border-radius",this._state.border_radius+"px"),this._styles.select(this._selector+".fl-control .button:hover").style("background-color",this._state.background_hover||t).style("color",this._state.font_color_hover||e),this._styles.select(this._selector+".fl-control .button.selected").style("background-color",this._state.background_selected).style("color",this._state.font_color_selected),this._styles.select(this._selector+".grouped.fl-control .button").style("border-right","none").style("border-radius","0").style("margin","0");var i="rtl"===r,a=i?":last-child":":first-child",o=i?":first-child":":last-child";this._styles.select(this._selector+".grouped.fl-control .button"+a).style("border-radius",this._state.border_radius+"px 0 0 "+this._state.border_radius+"px"),this._styles.select(this._selector+".grouped.fl-control .button"+o).style("border-radius","0 "+this._state.border_radius+"px "+this._state.border_radius+"px 0").style("border-right",this._state.border_width+"px solid "+n),this._styles.select(this._selector+".grouped.fl-control.fixed-width:not(.hidden)").style("width",this._state.grouped_width+"%"),this._stylesheet.innerHTML=this._styles.print()},Object.freeze({background:null,font_color:null,border_style:"bottom",border_width:1,border_color:null,border_transparency:.25,border_radius:3}),Object.freeze({play_color:null,handle_color:null,font_color:null,track_color:null,handle_height:1,track_height:.2,margin:4.5,play_button:!0});var Uy,$y=5,Vy=!0;function Gy(){var t=Fa.sort_descending_text,e=Fa.sort_ascending_text,n=Uo("#sort-control").style("border-radius",Fa.controls_border_radius+"rem").selectAll(".button").data(Fa.sort_enabled&&Fa.sort_control?[t,e]:[]),r=n.enter().append("div").classed("button",!0);n.merge(r).text((function(t){return t})).classed("selected",(function(e){return e==t?!Fa.sort_ascending:Fa.sort_ascending})).on("click",(function(e){Fa.sort_ascending=e!=t,Tv()})),n.exit().remove(),By.update(),Iy.update()}function Wy(t){return"axis"==Fa.label_mode?-$y:mv(t)-$y}function Xy(t){if(Sy<0||0===t.values.length)return 0;var e=t.values[Ay]-t.values[Sy];return Number(t.values[Sy])+e*Ty||0}var Zy,Jy,Qy,Ky,tv,ev,nv,rv,iv,av,ov,sv,cv,lv,uv,fv,dv,hv,pv,_v,gv={};function bv(t){return Rh(Xy(t))}function mv(t){return ov(Xy(t))||0}function yv(t,e){return Xy(t)==Xy(e)?$o(t.label,e.label):(Fa.sort_ascending?$o:Xo)(Xy(t),Xy(e))}function vv(t){return null!==t.values[Sy]&&null!==t.values[Ay]&&(null!==Xy(t)&&(null===Fa.bar_min_value||Xy(t)>Fa.bar_min_value))}function wv(){Uo(this).classed("bar",!1).classed("exiting",!0).transition().duration(rv).attr("transform","translate(0, "+Qy+")").remove()}function xv(t,e){var n=e*iv+av/2;n!==this._previous_offset&&Uo(this).transition().duration(rv).attr("transform",(function(){return"translate(0, "+n+")"})),this._previous_offset=n}function kv(t){return"bars"==Fa.label_mode?-(cv+uv):mv(t)-cv-uv}function Mv(t){return Uy?"rotate(90 "+(kv(t)+cv/2)+" "+(lv+sv/2)+")":null}function Sv(t){dv=t||Fa.number_of_bars;var e=Fa.bar_empty_spaces?Fa.number_of_bars:dv;Flourish.fixed_height||"specified"!=Fa.height_mode||Fa.column_chart?(xg.setHeight(null),Qy=tv=Jy,Ky=ev=Zy,Uy&&(Ky=Jy,Qy=Zy),hv=Qy-gv.top-gv.bottom,iv=hv/e):(iv=xg.remToPx(Fa.bar_height),Qy=tv=(hv=e*iv)+gv.top+gv.bottom,Ky=ev=Zy,xg.setHeight(Qy)),Uo("#viz").attr("width",Ky).attr("height",Qy).style("transform",Uy?"rotate(-90deg) translate("+-Ky+"px, 0)":null)}function Av(){var t,e,n,r;t=vy.getProgress(),e=za.data.column_names.values,n=(e.length-1)*t,r=(Sy=Math.floor(n))===e.length-1,Ay=r?Sy:Math.ceil(n),Ty=r?0:n-Sy,rv=Vy?0:1e3*Fa.animation_duration,Uo("#viz").attr("font-family",Fa.layout.body_font.name);var i=ep.slice();Fa.sort_enabled&&i.sort(yv);var a=Math.min(Fa.number_of_bars,tp.length);pv=i.filter(vv).splice(0,a),dv!==pv.length&&Sv(pv.length),av=iv*Fa.bar_margin/100;var o=iv-av,s=Uo("#viz").node().getBoundingClientRect().left;sv=Fa.image_height/100*o,cv=Fa.image_width/100*o,lv=(o-sv)/2,uv=Fa.image_margin_right/100*o,fv=uv<0?-uv:0;var c=gv.left;"axis"==Fa.label_mode?c+=xg.remToPx(Fa.label_axis_width):void 0!==za.data.column_names.image&&(c+=cv+uv),Uo("#plot").attr("transform","translate("+c+", "+gv.top+")");var l=Math.max(0,Ky-c-gv.right);Uo("#plot-clip rect").attr("width",Ky-gv.left).attr("height",hv);var u=Fa.scale_max,f=Fa.scale_min||0;"auto"==Fa.scale_type?u=Math.max(f,rs(pv,Xy)):"auto_fixed"==Fa.scale_type&&(u=tp.max_value);var d=[0,u];ov=El().domain(d).range([0,l]),"auto_fixed"==Fa.scale_type&&ov.nice();var h=Math.min(.66*o,xg.remToPx(Fa.label_max_size)),p=Uo("#viz #bars").selectAll(".bar").data(pv,(function(t){return t.index})),_=p.enter().append("g").attr("class","bar").attr("transform","translate(0, "+Qy+")");_.append("rect").attr("width",mv).attr("height",o).attr("fill",a_).style("opacity",Fa.bar_opacity),_.append("text").attr("class","label").attr("font-size",h).attr("y",.5*o).attr("dy",.25*h).attr("x",Wy);var g=_.append("g").attr("class","bar-images");g.append("clipPath").attr("class","image-clip").attr("id",(function(t){return"clip-"+t.index})).attr("transform",(function(t){return"translate("+("bars"==Fa.label_mode?0:mv(t))+", 0)"})).append("circle").attr("transform","translate("+-(cv/2+uv)+", "+(sv/2+lv)+")").attr("r",Math.min(sv,cv)/2),g.append("image").attr("height",sv).attr("width",cv).attr("x",kv).attr("y",lv).attr("transform",Mv),_.append("text").attr("class","value").text((function(t){return Xy(t)})).attr("font-size",h).attr("y",.5*o).attr("fill",Fa.label_color_out).attr("dy",.25*h).attr("x",(function(t){var e="axis"==Fa.label_mode?fv:0;return mv(t)+$y+e})),p.exit().each(wv),p.exit().select("rect").style("opacity",Fa.bar_opacity).attr("width",mv),p.exit().select(".image-clip").attr("transform",(function(t){return"translate("+("bars"==Fa.label_mode?0:mv(t))+", 0)"})),p.exit().select(".image-clip circle").attr("transform","translate("+-(cv/2+uv)+", "+(sv/2+lv)+")"),p.exit().select("image").attr("x",kv).attr("y",lv).attr("transform",Mv),p.exit().select("text.label").attr("x",Wy),p.exit().select("text.value").attr("x",(function(t){return mv(t)+$y}));var b=p.merge(_);b.each(xv),b.select("rect").style("opacity",Fa.bar_opacity).attr("width",mv).attr("height",o).attr("fill",a_),b.select(".bar-images").attr("clip-path","axis"==Fa.label_mode?"url(#plot-clip)":null),b.select(".image-clip").attr("transform",(function(t){return"translate("+("bars"==Fa.label_mode?0:mv(t))+", 0)"})),b.select(".image-clip circle").attr("transform","translate("+-(cv/2+uv)+", "+(sv/2+lv)+")").attr("r",Math.min(sv,cv)/2),b.select("image").attr("clip-path",(function(t){return Fa.image_circle?"url(#clip-"+t.index+")":null})),b.select("image").attr("preserveAspectRatio",(function(){return"stretch"==Fa.image_scale?"none":"xMidYMid"+("fit"==Fa.image_scale?"":" slice")})),b.select("image").each((function(t){t.image!=this.previous_image&&Uo(this).attr("xlink:href",t.image),this.previous_image=t.image})),b.select("image").attr("height",sv).attr("width",cv).attr("x",kv).attr("y",lv).attr("transform",Mv),b.select("text.label").text((function(t){return t.label})).attr("text-anchor",kg?"start":"end").attr("fill",Fa.label_color_in).attr("clip-path","axis"==Fa.label_mode?null:"url(#plot-clip)").attr("font-size",h).attr("y",.5*o).attr("dy",.25*h).attr("x",Wy),b.select("text.value").attr("font-size",h).attr("fill",Fa.label_color_out).attr("y",.5*o).attr("dy",.25*h).attr("x",(function(t){var e="axis"==Fa.label_mode?fv:0;return mv(t)+$y+e})).attr("text-anchor",kg?"end":"start").style("display",Fa.show_value?"block":"none").text(bv);var m=Math.min(3,Math.round(u)),y=ad().scale(ov).ticks(m).tickSize(-hv).tickFormat(Rh),v=0,w=1/0;Uo("#viz").select("#axis").call(y),Uo("#viz").selectAll(".tick line").attr("stroke",Fa.axis_color).attr("stroke-dasharray",Fa.axis_gridline_dash?Fa.axis_gridline_dash+" "+Fa.axis_gridline_dash:null),Uo("#viz").select("#axis").selectAll(".tick text").style("font-size",nv).style("fill",Fa.axis_text_color).attr("dy","-.33em").each((function(t,e){var n=this.getBoundingClientRect();this.parentNode.getAttribute("opacity")<1||(!Uy&&n.left<v+5||Uy&&n.bottom+5>w?Uo(this).style("visibility","hidden"):(Uo(this).style("visibility","visible"),v=n.left+n.width,w=n.top),0==e&&n.left<s&&Uo(this).style("text-anchor","start"))})),function(){var t=Fa.counter_line_height,e=Uy?tv:ev,n=Fa.counter?Fa.counter_font_size*e/100:0,r=Fa.totaliser?Fa.totaliser_font_size*e/100:0,i=t*(n+r),a=Fa.column_chart&&Fa.sort_ascending,o=Fa.sort_ascending||Fa.column_chart,s=a?gv.top+"px":null,c=o?Uy?"0px":gv.top+"px":tv-i+"px";Uo("#now").style("left",s).style("right",0).style("text-align",a?"left":"right").style("top",c),Uo("#current-column").text(za.data.column_names.values[Sy]).style("line-height",t+"em").style("height",t+"em").style("font-weight","bold").style("display",Fa.counter?"block":"none").style("color",Fa.counter_color).style("font-size",n+"px"),Uo("#totaliser").style("line-height",t+"em").style("height",t+"em").style("display",Fa.totaliser?"block":"none").style("font-size",r+"px").style("color",Fa.totaliser_color).text((function(){if(Fa.totaliser){var t=Xy({values:tp.totals}),e=Fa.totaliser_label,n=Rh(t);return"rtl"===Fa.layout.read_direction?n+"‫ "+e+" ‬":e+" "+n}}))}(),function(){Oy=Oy||Uo("#caption");var t=za.data.column_names.values[Sy],e=tp.captions[t];e!=zy&&(e?Oy.style("opacity",1).html(e):Oy.style("opacity",0),zy=e,R_(),Dy())}(),Ey(hv),Vy=!1}function Tv(){var t;Cy=[],Uy=Fa.column_chart,function(){var t=rp({data:za.data,blank_cells:Fa.blank_cells}),e=rp("legend_filter",Fa.legend_filter);if(t||e){for(var n=0,r=[],i={},a=0;a<za.data.column_names.values.length;a++)r[a]=0,i[za.data.column_names.values[a]]=null;var o="category"in za.data.column_names;tp=za.data.map((function(t,e){var i=null,a=t.values.map((function(e,n){var a=e;if(isNaN(a)){if("zero"==Fa.blank_cells)a=0;else if("remove"==Fa.blank_cells)a=null;else if("last_valid"==Fa.blank_cells)a=i||0;else if("interpolate"==Fa.blank_cells)if(null==i)a=null;else{for(var o=null,s=1;s<t.values.length;s++){var c=t.values[n+s];if(!isNaN(c)){o=c;break}}null!==o?i=a=i+(o-i)/(s+1):a=i}}else i=a;return r[n]+=Number(a),a}));n=Math.max(n,rs(a)||0);var s,c="string"==typeof(s=t.image)&&null!=s.match(/^(https?:\/\/|data:)/i)?t.image:null;return null!=t.image&&null==c&&console.warn("🐶 Flourish support: '"+t.image+"' is not a valid image URL"),{label:t.label,category:o?t.category:"",values:a,image:c,index:e}})),ep=tp.filter((function(t){return-1==Fa.legend_filter.indexOf(t.category)}));var s=za.captions||[];for(a=0;a<s.length;a++){var c=s[a];if(za.captions.metadata.from&&"datetime"==za.captions.metadata.from.type){var l=Ph.getInterpretation(za.captions.metadata.from.output_format_id);c.from=l.format(c.from)}if(za.captions.metadata.to&&"datetime"==za.captions.metadata.to.type){var u=Ph.getInterpretation(za.captions.metadata.to.output_format_id);c.to=u.format(c.to)}var f=!1;for(var d in i)if(d==c.from&&(f=!0),f&&(i[d]="<div id='text'>"+c.text+"</div><div id='image' style='display: "+(c.image?"inline-block":"none")+";'><img src='"+c.image+"' /></div>",d==c.to))break}tp.max_value=n,tp.totals=r,tp.captions=i}}(),za.data.metadata.values.length?(Rh=Hh(za.data.metadata.values[0].output_format_id),Bh=Ph.getInterpretation(za.data.metadata.values[0].output_format_id),Ih=function(t){return Bh.parse(t)}):(Rh=$h,Ih=$h),p_(),t=za.data.column_names.category||"",A_.data(o_,a_).filtered(Fa.legend_filter).autoTitle(t).on("click",(function(t){var e=Fa.legend_filter.indexOf(t.label);-1!=e?Fa.legend_filter.splice(e,1):Fa.legend_filter.length<o_.length-1&&Fa.legend_filter.push(t.label),Tv()})),T_.update(),Cv.update(),xg.update(),kg="rtl"===window.getComputedStyle(document.body).direction,Gy(),vy.update(),R_(),Dy(),nv=xg.remToPx(Fa.axis_font_size),gv={right:xg.remToPx(Fa.padding_right),left:0,bottom:0,top:1.4*nv},Zy=xg.getPrimaryWidth(),Jy=xg.getPrimaryHeight(),Sv(),Av(),Cy.forEach((function(t){Flourish.warn(t)}))}Hh=function(t){for(var e in qh)void 0===t[e]&&(t[e]=qh[e]);return function(e){return Uh(t,e)}}(Fa.formatting),xg=Wg(Fa.layout),i_=d_(Fa.color),T_=function(t){return new E_(t)}(Fa.legend_container),A_=function(t){return new w_(t)}(Fa.legend_categorical),_v={key0:"",key1:"",fraction:0,fallback:0},vy=new xy(xg.getSection("controls"),Fa.timeline,{getOrdinal:function(){return!0},getOrdinalKeys:function(){return za.data.column_names.values.map((function(t,e){return t||"column "+e}))},getOrdinalValue:function(t,e,n){return t.values[n]||0},getData:function(){return tp||[]},getInterval:function(){return"second"},shouldUpdate:function(){return!tp||!za._timeline_processed},getCategorical:function(){return!0},getDatumCategory:function(t){return t.category},getLineColorCategorical:function(t){return a_(t.category)},isCategorySelected:function(t){return-1===Fa.legend_filter.indexOf(t)},formatNumber:function(t){return Rh(t)},encodeProgress:function(t){var e=vy.bin_results.keys,n=Math.min(Math.max(0,t),1)*(e.length-1),r=Math.floor(n),i=Math.ceil(n),a=r===i?0:Math.min(Math.max(0,(n-r)/(i-r)),1);return _v.key0=e[r],_v.key1=e[i],_v.fraction=a,_v.fallback=t,_v},decodeProgress:function(t){var e=vy.bin_results.keys,n=e.indexOf(t.key0),r=e.indexOf(t.key1);if(-1===n)return t.fallback;if(-1===r)return t.fallback;var i=n/(e.length-1),a=i+(r/(e.length-1)-i)*t.fraction;return Math.min(1,a)}}),vy.loop(),By=function(t,e,n){return new Hy(t,e,n)}(Fa.controls_style,".fl-control",Fa.layout),Iy=function(t,e,n){return new qy(t,e,n)}(Fa.button_style,".fl-control-buttons",Fa.layout);var Cv=function(t,e){var n;t||(t=document.body),e||(e={});var r={reload_enabled:!1,reload_time:60,message_font_size:.85,message_prefix:"Refreshing in ",message_suffix:" seconds",message_show:!0,message_color:"#777777",message_interaction:"Paused during interaction",progress_show:!0,progress_height:.25,progress_width:2,progress_color:"#dddddd",progress_color_inner:"#999999",interaction_pause_duration:2};for(var i in r)e.hasOwnProperty[i]||(e[i]=r[i]);var a=document.createElement("div");a.className="flourish-reloader",t.appendChild(a);var o={};o.container=a;var s=Flourish.environment,c="live"===s;c&&window.location.search.match(/environment=story_player/)&&(c=!1);var l=c||"editor"===s||"sdk"===s,u=document.createElement("div");u.id="flourish-reloader-message",a.appendChild(u);var f=document.createElement("div");f.id="flourish-reloader-progress",f.style.marginRight="0.5em",f.style.borderRadius="0.33em",f.style.overflow="hidden",a.appendChild(f);var d=document.createElement("div");d.style.height="100%",d.style.width="0%",f.appendChild(d);var h,p,_=!1;return document.body.addEventListener("mousemove",(function(){h&&clearTimeout(h),_=!0,h=setTimeout((function(){_=!1}),1e3*e.interaction_pause_duration)})),o.update=function(){var t=e.reload_enabled&&l;function r(t,n){var r=Math.round(e.reload_time*(1-t));u.innerHTML=e.message_show?n||e.message_prefix+r+e.message_suffix:"",d.style.width=100*t+"%"}a.style.display=t?"block":"none",d.style.background=e.progress_color_inner,u.style.fontSize=e.message_font_size+"rem",u.style.color=e.message_color,f.style.display=e.progress_show?"block":"none",f.style.width=e.progress_width+"rem",f.style.height=e.progress_height+"rem",f.style.background=e.progress_color,t&&(r(0),void 0!==n&&cancelAnimationFrame(n),n=requestAnimationFrame((function i(a){p||(p=a);var o=a-p,s=o/(1e3*e.reload_time),l=s>=1;l&&c?window.location.reload():((l||_)&&(s=0,p+=o),r(s,_?e.message_interaction:void 0),t&&(n=requestAnimationFrame(i)))})))},o}(xg.getSection("footer"),Fa.reloader);return t.data=za,t.draw=function(){T_.appendTo(xg.getSection("legend")).add([A_]),Uo(xg.getSection("header")).append("div").attr("id","sort-control").attr("class","fl-control fl-control-buttons grouped");var t=Uo(xg.getSection("primary")),e=t.append("div").attr("id","now");e.append("div").attr("id","current-column"),e.append("div").attr("id","totaliser");var n=t.append("svg").attr("id","viz").attr("fill","currentColor").append("g").attr("id","plot");n.append("g").attr("id","axis"),n.append("clipPath").attr("id","plot-clip").append("rect"),n.append("g").attr("id","bars"),n.append("g").attr("id","annotations");var r=t.append("div").attr("id","caption");r.append("div").attr("id","text"),r.append("div").attr("id","image").append("img"),xg.awaitFonts((function(){window.template.update(),Ny()})),window.addEventListener("resize",Tv)},t.state=Fa,t.update=function(){Tv()},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
//# sourceMappingURL=template.js.map
</script><style>
	.flourish-timeline {
		pointer-events: none;
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
	}

	.flourish-timeline .tl-layer-back,
	.flourish-timeline .tl-layer-fore,
	.flourish-timeline .tl-layer-main {
		visibility: hidden;
	}

	.flourish-timeline.style-timeline .tl-layer-back,
	.flourish-timeline.style-timeline .tl-layer-fore,
	.flourish-timeline.style-timeline .tl-layer-main {
		visibility: visible;
	}

	.flourish-timeline.style-timeline .tl-interaction-box {
		pointer-events: all;
	}

	.flourish-timeline .tl-playback-button {
		pointer-events: all;
	}

	.tl-interaction-box {
		visibility: hidden;
		cursor: pointer;
	}

	.tl-playback-button {
		cursor: pointer;
	}

	.flourish-timeline.style-timeline .tl-playback-button text {
		visibility: hidden;
		pointer-events: none;
	}

	.tl-playback-button path {
		fill: #FFF;
	}

	.tl-axis-bottom .tick:last-of-type text {
		text-anchor: end;
	}

	.flourish-timeline-info {
		display: none;
		height: 2rem;
		font-size: 1rem;
		align-items: center;
		justify-content: flex-start;
		color: #666;
	}

	.flourish-timeline-info.enabled {
		display: flex;
	}

	.flourish-timeline-info svg {
		margin-right: 0.35rem;
	}

	.flourish-timeline-info .tl-info-icon {
		flex-shrink: 0;
	}

	.flourish-timeline-info .tl-info-icon,
	.flourish-timeline-info .tl-info-text,
	.flourish-timeline-info .tl-info-clear {
		opacity: 0;
		transition: opacity 0.3s;
	}

	.flourish-timeline-info.active-info .tl-info-icon,
	.flourish-timeline-info.active-info .tl-info-text,
	.flourish-timeline-info.active-clear .tl-info-clear {
		opacity: 1;
	}

	.flourish-timeline-info .tl-info-clear {
		color: #f66;
		cursor: pointer;
		border-bottom: 1px solid transparent;
		margin-left: auto;
		text-align: right;
		position: relative;
		margin-right: 1rem;
	}

	.flourish-timeline-info .tl-info-clear:hover {
		border-bottom-color: #f66;
	}

	.flourish-timeline-info .tl-info-clear > svg {
		position: absolute;
		top: 3px;
		right: -1.5rem;
	}
</style><div id="fl-layout-wrapper-outer" style="display: flex;" dir="ltr"><main id="fl-layout-wrapper" style="display: flex; flex-grow: 1; flex-direction: column; box-sizing: border-box; overflow: hidden; height: 100vh; color: rgb(51, 51, 51); padding: 0.75rem;" dir="ltr"><section class="fl-layout-container" id="fl-layout-header-container" style="width: 100%; position: relative; order: 0;"><div class="fl-layout-inner" id="fl-layout-header" style="width: 100%; position: relative;"><header class="flourish-header" style="text-align: start; margin: 0px;"><div class="flourish-header-logo-container"></div><hgroup><h1 id="flourish-header-title" style="font-family: inherit; font-size: 1.6rem; line-height: 1.2; font-weight: bold; color: rgb(51, 51, 51); margin: 0px; padding-top: 0px;"></h1><h2 id="flourish-header-subtitle" style="font-family: inherit; font-size: 1.6rem; line-height: 1.2; font-weight: normal; color: rgb(51, 51, 51); margin: 0px; padding-top: 0px;"></h2></hgroup><p id="flourish-header-text" style="font-size: 1.2rem; line-height: 1.2; font-weight: normal; margin: 0px; color: rgb(51, 51, 51); padding-top: 0px;"></p><div class="clearfix" style="clear: both;"></div></header><div id="sort-control" class="fl-control fl-control-buttons grouped"></div></div></section><section class="fl-layout-container" id="fl-layout-controls-container" style="width: 100%; position: relative; order: 20; padding-top: 0.5rem;"><div class="fl-layout-inner" id="fl-layout-controls" aria-hidden="true" style="width: 100%; position: relative;"><svg class="flourish-timeline style-timeline" style="display: block;" width="1456px" height="288px"><g class="tl-layer-back"><rect class="tl-background" x="219.19687499999998" y="14.399999999999999" width="1235.803125" height="252.6" style="fill: transparent; visibility: visible;"></rect></g><g class="tl-layer-main" clip-path="url(#main-mask)"><path class="tl-line" data-category="China" d="M219.19687499999998,253.72611764705886C219.19687499999998,253.72611764705886,258.4287202380952,252.96666666666667,278.04464285714283,252.43835294117648C297.66056547619047,251.91003921568628,317.27648809523805,251.3652156862745,336.8924107142857,250.55623529411764C356.5083333333333,249.7472549019608,376.12425595238085,248.6245882352941,395.7401785714285,247.5844705882353C415.3561011904761,246.54435294117647,434.97202380952376,245.6198039215686,454.5879464285714,244.3155294117647C474.20386904761904,243.01125490196077,493.81979166666656,241.8390588235294,513.4357142857142,239.75882352941176C533.0516369047618,237.67858823529411,552.6675595238095,234.87192156862744,572.2834821428571,231.83411764705883C591.8994047619047,228.79631372549022,611.5153273809523,224.09101960784318,631.1312499999999,221.53200000000004C650.7471726190475,218.9729803921569,670.3630952380951,218.9564705882353,689.9790178571427,216.48000000000002C709.5949404761903,214.00352941176473,729.210863095238,210.7180784313726,748.8267857142856,206.67317647058826C768.4427083333333,202.62827450980393,788.0586309523808,196.23898039215686,807.6745535714284,192.2105882352941C827.290476190476,188.18219607843133,846.9063988095238,185.83780392156862,866.5223214285714,182.50282352941176C886.1382440476191,179.1678431372549,905.7541666666665,175.45313725490197,925.3700892857141,172.20070588235296C944.9860119047618,168.94827450980395,964.6019345238094,165.51423529411767,984.217857142857,162.98823529411766C1003.8337797619047,160.46223529411765,1023.4497023809521,158.20039215686276,1043.0656249999997,157.04470588235296C1062.6815476190473,155.88901960784315,1082.2974702380952,158.03529411764706,1101.9133928571428,156.0541176470588C1121.5293154761903,154.07294117647055,1141.145238095238,149.615294117647,1160.7611607142856,145.1576470588235C1180.377083333333,140.7,1199.9930059523808,132.6101960784314,1219.6089285714284,129.30823529411765C1239.2248511904759,126.00627450980393,1258.8407738095236,126.66666666666666,1278.4566964285714,125.34588235294117C1298.0726190476191,124.02509803921569,1317.6885416666669,127.16196078431373,1337.3044642857144,121.38352941176471C1356.920386904762,115.60509803921569,1376.5363095238095,96.12352941176472,1396.152232142857,90.67529411764707C1415.7681547619045,85.22705882352942,1455,88.69411764705882,1455,88.69411764705882" style="fill: none; opacity: 1; stroke-width: 2; stroke: rgb(67, 40, 231);"></path><path class="tl-line" data-category="France" d="M219.19687499999998,253.32988235294118C219.19687499999998,253.32988235294118,258.4287202380952,252.90062745098038,278.04464285714283,252.14117647058822C297.66056547619047,251.38172549019606,317.27648809523805,249.7967843137255,336.8924107142857,248.77317647058825C356.5083333333333,247.749568627451,376.12425595238085,246.5938823529412,395.7401785714285,245.9995294117647C415.3561011904761,245.40517647058823,434.97202380952376,245.5372549019608,454.5879464285714,245.20705882352942C474.20386904761904,244.87686274509804,493.81979166666656,244.77780392156865,513.4357142857142,244.0183529411765C533.0516369047618,243.25890196078433,552.6675595238095,241.65745098039216,572.2834821428571,240.65035294117646C591.8994047619047,239.64325490196077,611.5153273809523,238.04180392156863,631.1312499999999,237.97576470588237C650.7471726190475,237.9097254901961,670.3630952380951,239.79184313725494,689.9790178571427,240.25411764705885C709.5949404761903,240.71639215686275,729.210863095238,241.03007843137254,748.8267857142856,240.74941176470588C768.4427083333333,240.46874509803922,788.0586309523808,238.61964705882352,807.6745535714284,238.57011764705882C827.290476190476,238.52058823529413,846.9063988095238,240.35317647058824,866.5223214285714,240.45223529411766C886.1382440476191,240.55129411764707,905.7541666666665,239.4616470588235,925.3700892857141,239.16447058823528C944.9860119047618,238.86729411764705,964.6019345238094,238.0583137254902,984.217857142857,238.66917647058824C1003.8337797619047,239.2800392156863,1023.4497023809521,242.18576470588235,1043.0656249999997,242.82964705882353C1062.6815476190473,243.4735294117647,1082.2974702380952,242.79662745098037,1101.9133928571428,242.53247058823527C1121.5293154761903,242.26831372549017,1141.145238095238,241.77301960784314,1160.7611607142856,241.24470588235295C1180.377083333333,240.71639215686275,1199.9930059523808,239.57721568627454,1219.6089285714284,239.36258823529414C1239.2248511904759,239.14796078431374,1258.8407738095236,239.70929411764706,1278.4566964285714,239.9569411764706C1298.0726190476191,240.20458823529412,1317.6885416666669,241.22819607843138,1337.3044642857144,240.8484705882353C1356.920386904762,240.46874509803922,1376.5363095238095,237.90972549019608,1396.152232142857,237.67858823529411C1415.7681547619045,237.44745098039215,1455,239.46164705882353,1455,239.46164705882353" style="fill: none; opacity: 1; stroke-width: 2; stroke: rgb(150, 84, 229);"></path><path class="tl-line" data-category="India" d="M219.19687499999998,262.19564705882357C219.19687499999998,262.19564705882357,258.4287202380952,262.1015411764706,278.04464285714283,261.8984705882353C297.66056547619047,261.69539999999995,317.27648809523805,261.29751372549015,336.8924107142857,260.97722352941173C356.5083333333333,260.6569333333333,376.12425595238085,260.32673725490196,395.7401785714285,259.9767294117647C415.3561011904761,259.6267215686275,434.97202380952376,259.2585529411765,454.5879464285714,258.87717647058827C474.20386904761904,258.49580000000003,493.81979166666656,258.3488627450981,513.4357142857142,257.6884705882353C533.0516369047618,257.02807843137253,552.6675595238095,255.34407843137257,572.2834821428571,254.91482352941176C591.8994047619047,254.48556862745096,611.5153273809523,255.31105882352938,631.1312499999999,255.11294117647057C650.7471726190475,254.91482352941176,670.3630952380951,254.51858823529415,689.9790178571427,253.72611764705886C709.5949404761903,252.93364705882357,729.210863095238,251.15058823529412,748.8267857142856,250.35811764705883C768.4427083333333,249.56564705882354,788.0586309523808,249.2189411764706,807.6745535714284,248.97129411764706C827.290476190476,248.72364705882353,846.9063988095238,248.93827450980393,866.5223214285714,248.87223529411764C886.1382440476191,248.80619607843136,905.7541666666665,248.92176470588234,925.3700892857141,248.5750588235294C944.9860119047618,248.22835294117644,964.6019345238094,247.18823529411765,984.217857142857,246.792C1003.8337797619047,246.39576470588236,1023.4497023809521,246.61039215686273,1043.0656249999997,246.19764705882352C1062.6815476190473,245.7849019607843,1082.2974702380952,245.22356862745096,1101.9133928571428,244.3155294117647C1121.5293154761903,243.4074901960784,1141.145238095238,241.4263137254902,1160.7611607142856,240.74941176470588C1180.377083333333,240.07250980392158,1199.9930059523808,240.56780392156864,1219.6089285714284,240.25411764705885C1239.2248511904759,239.94043137254906,1258.8407738095236,238.81776470588238,1278.4566964285714,238.86729411764708C1298.0726190476191,238.91682352941177,1317.6885416666669,241.06309803921567,1337.3044642857144,240.55129411764705C1356.920386904762,240.03949019607842,1376.5363095238095,236.98517647058824,1396.152232142857,235.7964705882353C1415.7681547619045,234.60776470588237,1455,233.4190588235294,1455,233.4190588235294" style="fill: none; opacity: 1; stroke-width: 2; stroke: rgb(255, 98, 131);"></path><path class="tl-line" data-category="America" d="M219.19687499999998,161.99764705882353C219.19687499999998,161.99764705882353,258.4287202380952,160.51176470588234,278.04464285714283,159.02588235294118C297.66056547619047,157.54000000000002,317.27648809523805,155.2286274509804,336.8924107142857,153.08235294117648C356.5083333333333,150.93607843137255,376.12425595238085,148.6247058823529,395.7401785714285,146.14823529411763C415.3561011904761,143.67176470588234,434.97202380952376,140.8650980392157,454.5879464285714,138.22352941176473C474.20386904761904,135.58196078431376,493.81979166666656,132.77529411764706,513.4357142857142,130.29882352941178C533.0516369047618,127.82235294117648,552.6675595238095,125.01568627450982,572.2834821428571,123.36470588235295C591.8994047619047,121.71372549019608,611.5153273809523,120.39294117647057,631.1312499999999,120.39294117647057C650.7471726190475,120.39294117647057,670.3630952380951,123.69490196078432,689.9790178571427,123.36470588235295C709.5949404761903,123.03450980392158,729.210863095238,120.2278431372549,748.8267857142856,118.41176470588235C768.4427083333333,116.5956862745098,788.0586309523808,114.61450980392155,807.6745535714284,112.46823529411763C827.290476190476,110.32196078431372,846.9063988095238,107.51529411764707,866.5223214285714,105.53411764705884C886.1382440476191,103.5529411764706,905.7541666666665,102.72745098039215,925.3700892857141,100.58117647058823C944.9860119047618,98.43490196078432,964.6019345238094,94.9678431372549,984.217857142857,92.6564705882353C1003.8337797619047,90.34509803921569,1023.4497023809521,88.52901960784314,1043.0656249999997,86.7129411764706C1062.6815476190473,84.89686274509805,1082.2974702380952,83.90627450980394,1101.9133928571428,81.76000000000002C1121.5293154761903,79.6137254901961,1141.145238095238,76.80705882352942,1160.7611607142856,73.83529411764707C1180.377083333333,70.86352941176472,1199.9930059523808,67.06627450980392,1219.6089285714284,63.929411764705875C1239.2248511904759,60.79254901960783,1258.8407738095236,56.00470588235293,1278.4566964285714,55.01411764705882C1298.0726190476191,54.023529411764706,1317.6885416666669,61.122745098039225,1337.3044642857144,57.98588235294119C1356.920386904762,54.849019607843154,1376.5363095238095,43.457254901960795,1396.152232142857,36.1929411764706C1415.7681547619045,28.9286274509804,1455,14.399999999999999,1455,14.399999999999999" style="fill: none; opacity: 1; stroke-width: 2; stroke: rgb(255, 136, 0);"></path><path class="tl-line" data-category="" d="M219.19687499999998,267C219.19687499999998,267,258.4287202380952,267,278.04464285714283,267C297.66056547619047,267,317.27648809523805,267,336.8924107142857,267C356.5083333333333,267,376.12425595238085,267,395.7401785714285,267C415.3561011904761,267,434.97202380952376,267,454.5879464285714,267C474.20386904761904,267,493.81979166666656,267,513.4357142857142,267C533.0516369047618,267,552.6675595238095,267,572.2834821428571,267C591.8994047619047,267,611.5153273809523,267,631.1312499999999,267C650.7471726190475,267,670.3630952380951,267,689.9790178571427,267C709.5949404761903,267,729.210863095238,267,748.8267857142856,267C768.4427083333333,267,788.0586309523808,267,807.6745535714284,267C827.290476190476,267,846.9063988095238,267,866.5223214285714,267C886.1382440476191,267,905.7541666666665,267,925.3700892857141,267C944.9860119047618,267,964.6019345238094,267,984.217857142857,267C1003.8337797619047,267,1023.4497023809521,267,1043.0656249999997,267C1062.6815476190473,267,1082.2974702380952,267,1101.9133928571428,267C1121.5293154761903,267,1141.145238095238,267,1160.7611607142856,267C1180.377083333333,267,1199.9930059523808,267,1219.6089285714284,267C1239.2248511904759,267,1258.8407738095236,267,1278.4566964285714,267C1298.0726190476191,267,1317.6885416666669,267,1337.3044642857144,267C1356.920386904762,267,1376.5363095238095,267,1396.152232142857,267C1415.7681547619045,267,1455,267,1455,267" style="fill: none; opacity: 1; stroke-width: 2; stroke: rgb(255, 197, 2);"></path></g><g class="tl-layer-fore"><g class="tl-axis-bottom" fill="none" font-size="10" font-family="sans-serif" text-anchor="middle" transform="translate(0, 267)" style="color: rgb(170, 170, 170); font-size: 0.7rem;"><path class="domain" stroke="currentColor" d="M219.69687499999998,6V0.5H1455.5V6"></path><g class="tick" opacity="1" transform="translate(219.69687499999998,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2001</text></g><g class="tick" opacity="1" transform="translate(278.54464285714283,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2002</text></g><g class="tick" opacity="1" transform="translate(337.3924107142857,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2003</text></g><g class="tick" opacity="1" transform="translate(396.2401785714285,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2004</text></g><g class="tick" opacity="1" transform="translate(455.0879464285714,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2005</text></g><g class="tick" opacity="1" transform="translate(513.9357142857142,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2006</text></g><g class="tick" opacity="1" transform="translate(572.7834821428571,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2007</text></g><g class="tick" opacity="1" transform="translate(631.6312499999999,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2008</text></g><g class="tick" opacity="1" transform="translate(690.4790178571427,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2009</text></g><g class="tick" opacity="1" transform="translate(749.3267857142856,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2010</text></g><g class="tick" opacity="1" transform="translate(808.1745535714284,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2011</text></g><g class="tick" opacity="1" transform="translate(867.0223214285714,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2012</text></g><g class="tick" opacity="1" transform="translate(925.8700892857141,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2013</text></g><g class="tick" opacity="1" transform="translate(984.717857142857,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2014</text></g><g class="tick" opacity="1" transform="translate(1043.5656249999997,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2015</text></g><g class="tick" opacity="1" transform="translate(1102.4133928571428,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2016</text></g><g class="tick" opacity="1" transform="translate(1161.2611607142856,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2017</text></g><g class="tick" opacity="1" transform="translate(1220.1089285714284,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2018</text></g><g class="tick" opacity="1" transform="translate(1278.9566964285714,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2019</text></g><g class="tick" opacity="1" transform="translate(1337.8044642857144,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2020</text></g><g class="tick" opacity="1" transform="translate(1396.652232142857,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2021</text></g><g class="tick" opacity="1" transform="translate(1455.5,0)"><line stroke="currentColor" y2="6" style="opacity: 1;"></line><text fill="currentColor" y="9" dy="0.71em" style="visibility: visible;">2022</text></g></g><g class="tl-axis-left" fill="none" font-size="10" font-family="sans-serif" text-anchor="end" style="visibility: visible; font-size: 0.7rem; color: rgb(170, 170, 170);" transform="translate(219.19687499999998, 0)"><path class="domain" stroke="currentColor" d="M-6,267.5H0.5V14.899999999999999H-6"></path><g class="tick" opacity="1" transform="translate(0,267.5)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">0</text></g><g class="tick" opacity="1" transform="translate(0,247.68823529411765)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">2,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,227.8764705882353)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">4,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,208.0647058823529)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">6,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,188.2529411764706)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">8,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,168.44117647058826)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">10,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,148.62941176470588)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">12,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,128.81764705882352)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">14,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,109.00588235294117)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">16,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,89.19411764705882)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">18,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,69.38235294117648)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">20,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,49.5705882352941)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">22,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(0,29.758823529411764)"><line stroke="currentColor" x2="-6" style="opacity: 1;"></line><text fill="currentColor" x="-9" dy="0.32em" style="visibility: visible;">24,000,000,000,000</text></g></g><g class="tl-range-box" style="visibility: hidden;"><rect></rect><rect></rect><line></line><line></line></g><line class="tl-scrub-bar" stroke="#aaaaaa" x1="0" x2="0" y1="14.399999999999999" y2="267" visibility="visible" transform="translate(399.988404817812, 0)"></line><path class="tl-scrub-node" d="M 0 0 L -5 -7 L 5 -7 z" fill="#aaaaaa" visibility="hidden"></path></g><rect class="tl-interaction-box" x="219.19687499999998" y="14.399999999999999" width="1235.803125" height="252.6"></rect><g class="tl-playback-button" transform="translate(38.4,151.2)"><circle r="24" fill="#333333"></circle><path d="M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z" transform="translate(-10.5, -12) scale(0.046875)" style="fill: rgb(255, 255, 255);"></path><text style="alignment-baseline: middle; dominant-baseline: middle;" font-size="1rem" transform="translate(33.6,0)">Pause</text></g><defs><clippath id="main-mask"><rect x="219.19687499999998" y="14.399999999999999" width="180.79152981781203" height="252.6"></rect></clippath></defs></svg></div></section><section class="fl-layout-container" id="fl-layout-legend-container" style="width: 100%; position: relative; order: 9;"><div class="fl-layout-inner" id="fl-layout-legend" aria-hidden="true" style="width: 100%; position: relative;"><div style="justify-content: flex-start; display: flex; flex-direction: row;"><div class="fl-legend-container interactive" id="fl-legend-discrete-color-0" style="display: none; justify-content: flex-start; padding-inline-end: 0.5rem; padding-bottom: 0px;"><p class="fl-legend-title" style="font-weight: bold; font-size: 1rem; margin-right: 0.25rem; line-height: 1.25em; margin-top: 0px; margin-bottom: 0px; text-align: start;"></p></div></div></div></section><section class="fl-layout-container" id="fl-layout-primary-container" style="width: 100%; position: relative; order: 10; display: flex; overflow: hidden; flex: 1 1 auto; padding-bottom: 0.5rem;"><p id="fl-layout-primary-description" style="border: 0px; height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; clip: rect(0px, 0px, 0px, 0px);"></p><div class="fl-layout-inner" id="fl-layout-primary" style="width: 100%; position: relative;" aria-hidden="true"><div id="now" style="right: 0px; text-align: right; top: 389.154px;"><div id="current-column" style="line-height: 1em; height: 1em; font-weight: bold; display: block; color: rgb(204, 204, 204); font-size: 145.622px;">2004</div><div id="totaliser" style="line-height: 1em; height: 1em; display: block; font-size: 58.2488px; color: rgb(204, 204, 204);">Total: 17,084,363,122,100</div></div><svg id="viz" fill="currentColor" width="1456.21875" height="593.025" font-family="Source Sans Pro"><g id="plot" transform="translate(96, 26.88)"><g id="axis" fill="none" font-size="10" font-family="sans-serif" text-anchor="middle"><path class="domain" stroke="currentColor" d="M0.5,566.145V0.5H1226.31875V566.145"></path><g class="tick" opacity="1" transform="translate(0.5,0)"><line stroke="#dddddd" y2="566.145"></line><text fill="currentColor" y="-3" dy="-.33em" style="font-size: 19.2px; visibility: visible;">0</text></g><g class="tick" opacity="1" transform="translate(500.517761005328,0)"><line stroke="#dddddd" y2="566.145"></line><text fill="currentColor" y="-3" dy="-.33em" style="font-size: 19.2px; visibility: visible;">5,000,000,000,000</text></g><g class="tick" opacity="1" transform="translate(1000.535522010656,0)"><line stroke="#dddddd" y2="566.145"></line><text fill="currentColor" y="-3" dy="-.33em" style="font-size: 19.2px; visibility: visible;">10,000,000,000,000</text></g></g><clippath id="plot-clip"><rect width="1456.21875" height="566.145"></rect></clippath><g id="bars"><g class="bar" transform="translate(0, 7.076812267303467)"><rect width="1225.81875" height="127.38262499999999" fill="#FF8800" style="opacity: 0.85;"></rect><text class="label" font-size="19.2" y="63.691312499999995" dy="4.8" x="-5" text-anchor="end">America</text><g class="bar-images" clip-path="url(#plot-clip)"><clippath class="image-clip" id="clip-3" transform="translate(1225.81875, 0)"><circle transform="translate(-66.875878125, 63.691312499999995)" r="57.32218125"></circle></clippath><image height="114.6443625" width="184.70480625" x="1066.59046875" y="6.369131249999995" clip-path="url(#clip-3)" preserveAspectRatio="xMidYMid slice"></image></g><text class="value" font-size="19.2" y="63.691312499999995" dy="4.8" x="1256.295275" text-anchor="start" style="display: block;">12,257,752,080,000</text></g><g class="bar" transform="translate(0, 148.61306762695312)"><rect width="212.58507198095901" height="127.38262499999999" fill="#9654E5" style="opacity: 0.85;"></rect><text class="label" font-size="19.2" y="63.691312499999995" dy="4.8" x="-5" text-anchor="end">France</text><g class="bar-images" clip-path="url(#plot-clip)"><clippath class="image-clip" id="clip-1" transform="translate(212.58507198095901, 0)"><circle transform="translate(-66.875878125, 63.691312499999995)" r="57.32218125"></circle></clippath><image height="114.6443625" width="184.70480625" x="53.35679073095902" y="6.369131249999995" clip-path="url(#clip-1)" preserveAspectRatio="xMidYMid slice"></image></g><text class="value" font-size="19.2" y="63.691312499999995" dy="4.8" x="243.06159698095902" text-anchor="start" style="display: block;">2,125,775,208,000</text></g><g class="bar" transform="translate(0, 290.1493225097656)"><rect width="198.3893202372259" height="127.38262499999999" fill="#4328E7" style="opacity: 0.85;"></rect><text class="label" font-size="19.2" y="63.691312499999995" dy="4.8" x="-5" text-anchor="end">China</text><g class="bar-images" clip-path="url(#plot-clip)"><clippath class="image-clip" id="clip-0" transform="translate(198.3893202372259, 0)"><circle transform="translate(-66.875878125, 63.691312499999995)" r="57.32218125"></circle></clippath><image height="114.6443625" width="184.70480625" x="39.16103898722589" y="6.369131249999995" clip-path="url(#clip-0)" preserveAspectRatio="xMidYMid slice"></image></g><text class="value" font-size="19.2" y="63.691312499999995" dy="4.8" x="228.8658452372259" text-anchor="start" style="display: block;">1,983,822,733,000</text></g><g class="bar" transform="translate(0, 431.6855773925781)"><rect width="71.7038570847017" height="127.38262499999999" fill="#FF6283" style="opacity: 0.85;"></rect><text class="label" font-size="19.2" y="63.691312499999995" dy="4.8" x="-5" text-anchor="end">India</text><g class="bar-images" clip-path="url(#plot-clip)"><clippath class="image-clip" id="clip-2" transform="translate(71.7038570847017, 0)"><circle transform="translate(-66.875878125, 63.691312499999995)" r="57.32218125"></circle></clippath><image height="114.6443625" width="184.70480625" x="-87.5244241652983" y="6.369131249999995" clip-path="url(#clip-2)" preserveAspectRatio="xMidYMid slice"></image></g><text class="value" font-size="19.2" y="63.691312499999995" dy="4.8" x="102.18038208470169" text-anchor="start" style="display: block;">717,013,101,100</text></g></g><g id="annotations" clip-path="url(#plot-clip)"></g></g></svg><div id="caption" style="flex-direction: column; font-size: 1.2rem; padding: 1rem; border-radius: 0.5rem; align-items: center; background: rgb(255, 255, 255); color: rgb(0, 0, 0); border-color: rgb(255, 255, 255); top: 50%; left: 50%; transform: translate(-50%, -50%);"><div id="text"></div><div id="image" style="max-height: 50%; margin: 1rem 0px 0px;"><img></div></div></div><div id="fl-layout-overlay" style="position: absolute; display: none; width: 100%; height: 100%; top: 0px; left: 0px; background-color: rgb(200, 200, 200); z-index: 999999; pointer-events: none;"><p class="fl-layout-overlay-message" style="color: rgb(51, 51, 51); font-size: 1.5rem; padding-left: 15%; padding-right: 15%; width: 100%; box-sizing: border-box; position: absolute; top: 50%; transform: translate(0px, -50%); margin: 0px; text-align: center;"></p></div></section><section class="fl-layout-container" id="fl-layout-footer-container" style="width: 100%; position: relative; order: 30;"><div class="fl-layout-inner" id="fl-layout-footer" style="width: 100%; position: relative;"><footer class="flourish-footer" style="display: flex; height: 0px; width: 100%; font-family: inherit; font-weight: normal; justify-content: space-between; font-size: 1rem; color: rgb(51, 51, 51); align-items: center;"><div class="flourish-footer-text" id="flourish-footer-text"><p></p></div><div class="flourish-footer-logo-container"></div></footer><div class="flourish-reloader" style="display: none;"><div id="flourish-reloader-message" style="font-size: 0.85rem; color: rgb(119, 119, 119);"></div><div id="flourish-reloader-progress" style="margin-right: 0.5em; border-radius: 0.33em; overflow: hidden; display: block; width: 2rem; height: 0.25rem; background: rgb(221, 221, 221);"><div style="height: 100%; width: 0%; background: rgb(153, 153, 153);"></div></div></div></div></section></main><aside id="fl-layout-sidebar" style="position: relative;"></aside></div><script src="./Flourish template_ Bar chart race_files/embedded.js.下载"></script><script>
		function _Flourish_unflattenInto(dest, src) {
			dest = dest || {};
			for (var k in src) {
				var t = dest;
				for (var i = k.indexOf("."), p = 0; i >= 0; i = k.indexOf(".", p = i+1)) {
					var s = k.substring(p, i);
					if (!(s in t)) t[s] = {};
					t = t[s];
				}
				t[k.substring(p)] = src[k];
			}
			return dest;
		}
		var _Flourish_settings = {"bars_advanced":false,"color_mode":"bar","column_chart":false,"height_mode":"fill_space","timeline.color_background":null,"timeline.curve":true,"timeline.graph":true,"timeline.graph_height":15,"timeline.graph_settings":true};
		_Flourish_unflattenInto(window.template.state, _Flourish_settings);

		var _Flourish_data_column_names = {"captions":{"from":"From","image":"Image","text":"Caption","to":"To"},"data":{"category":"Country Name","label":"Country Name","values":["2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015","2016","2017","2018","2019","2020","2021","2022"]}},
		    _Flourish_data_metadata = {"captions":{"from":{"type":"string","type_id":"string$arbitrary_string","output_format_id":"string$arbitrary_string"},"image":{"type":"string","type_id":"string$arbitrary_string","output_format_id":"string$arbitrary_string"},"text":{"type":"string","type_id":"string$arbitrary_string","output_format_id":"string$arbitrary_string"},"to":{"type":"string","type_id":"string$arbitrary_string","output_format_id":"string$arbitrary_string"}},"data":{"category":{"type":"string","type_id":"string$arbitrary_string","output_format_id":"string$arbitrary_string"},"label":{"type":"string","type_id":"string$arbitrary_string","output_format_id":"string$arbitrary_string"},"values":[{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"},{"type":"number","type_id":"number$comma_point","output_format_id":"number$comma_point"}]}},
		    _Flourish_data = {"captions":[],"data":[{"category":"China","label":"China","values":[1340000000000,1470000000000,1660000000000,1960000000000,2290000000000,2750000000000,3550000000000,4590000000000,5100000000000,6090000000000,7550000000000,8530000000000,9570000000000,10500000000000,11100000000000,11200000000000,12300000000000,13900000000000,14300000000000,14700000000000,17800000000000,18000000000000]},{"category":"France","label":"France","values":[1380000000000,1500000000000,1840000000000,2120000000000,2200000000000,2320000000000,2660000000000,2930000000000,2700000000000,2650000000000,2870000000000,2680000000000,2810000000000,2860000000000,2440000000000,2470000000000,2600000000000,2790000000000,2730000000000,2640000000000,2960000000000,2780000000000]},{"category":"India","label":"India","values":[485000000000,515000000000,608000000000,709000000000,820000000000,940000000000,1220000000000,1200000000000,1340000000000,1680000000000,1820000000000,1830000000000,1860000000000,2040000000000,2100000000000,2290000000000,2650000000000,2700000000000,2840000000000,2670000000000,3150000000000,3390000000000]},{"category":"America","label":"America","values":[10600000000000,10900000000000,11500000000000,12200000000000,13000000000000,13800000000000,14500000000000,14800000000000,14500000000000,15000000000000,15600000000000,16300000000000,16800000000000,17600000000000,18200000000000,18700000000000,19500000000000,20500000000000,21400000000000,21100000000000,23300000000000,25500000000000]},{"category":"","label":"","values":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},
		    _Flourish_visualisation_id = 14560997,
		    _Flourish_visualisation_version_number = 14,
		    _Flourish_template_id = 8992;
		for (var _Flourish_dataset in _Flourish_data) {
				window.template.data[_Flourish_dataset] = _Flourish_data[_Flourish_dataset];
				window.template.data[_Flourish_dataset].column_names = _Flourish_data_column_names[_Flourish_dataset];
				window.template.data[_Flourish_dataset].metadata = _Flourish_data_metadata[_Flourish_dataset];
		}

		
		window.template.draw();
	</script><div class="font-samples" style="visibility: hidden; overflow: hidden; height: 0px;"></div><deepl-input-controller><template shadowrootmode="open"><link rel="stylesheet" href="chrome-extension://fancfknaplihpclbhbpclnmmjcjanbaf/build/content.css"><div><div class="dl-input-translation-container svelte-ju4595"><div></div></div></div></template></deepl-input-controller></body></html>